Hello Everyone,
I have reread the documentation a couple of times, and I still have a hard time to grasp how the queries work.
For example, if i want to delete a record, here is my result in c/al, compared to a simple sql statement:
Var
lines : Record "Sales Line";
Begin
lines.Init();
lines.SETFILTER("Document No.", "No.");
lines.SetRange("Line No.", 2);
lines.Find('-');
lines.Delete();
The sql version is
DELETE FROM "Sales line" WHERE "Document No." = "No." AND "Line No." = 2;
Am I missing something? Or is it really that convoluted?
Cheers