I need on double click move the line to another Value table. The code below works 90%, sometimes everything work fine, sometimes it fails deleting the last line. Debugging shows that the last line have the correct value (for example 1 for 1 line table). Why this could be possible? Should I delete line in another place?
| Code |
|---|
&AtClient
Procedure VTChecksSelection(Item, SelectedRow, Field, StandardProcessing)
Row = VTOptions.Add();
Line = Items.VTChecks.CurrentData;
Row.Bank = Line.Bank;
Row.Number = Line.Number;
Row.Account = Line.Account;
Row.Value = Line.Value;
VTChecks.Delete(SelectedRow);
StandardProcessing = False;
EndProcedure
|