Private lblPrv As Label
Private Brt=0 As Double
Private Cur As Cursor
Cur = Main.SQLMem.ExecQuery("select * from mem_sls order by ln desc")
For i = 0 To Cur.RowCount - 1
Cur.Position = i
lblPrv.Text = lblPrv.Text & Cur.GetString("ITM") & CRLF
lblPrv.Text = lblPrv.Text & Cur.GetString("QTY_DSCP") & " " & Cur.GetString("TTL_DSCP") & CRLF
Brt = Brt + Cur.GetDouble("QTY")*Cur.GetInt("PRC")
Next
Cur.Close
lblPrv.Text = lblPrv.Text & "==============================" & CRLF
lblPrv.Text = lblPrv.Text & "Bruto", & " " & NumberFormat2(Brt,1,0,0,True)) & CRLF