Tag: WITH-DO
Some Compounds Statements
Have a look at these code samples and tell me where a compound statement, i.e. BEGIN-END, should be constructed to get the code work right. Just dare without going into NAV and verify. [8-|] Sample 1 1. SalesCommentLine.SETRANGE(“Document Type”,SalesQHeader.”Document Type”);2. SalesCommentLine.SETRANGE(“No.”,SalesQHeader.”No.”);3. WHILE SalesCommentLine.FIND(‘-‘) DO4. SalesCommentLine.DELETE;5. SalesCommentLine.”Document Type” := SalesOrderHeader.”Document Type”;6. SalesCommentLine.”No.” := SalesOrderHeader.”No.”;7. …
Some Compounds Statements
Have a look at these code samples and tell me where a compound statement, i.e. BEGIN-END, should be constructed to get the code work right. Just dare without going into NAV and verify. [8-|] Sample 1 1. SalesCommentLine.SETRANGE(“Document Type”,SalesQHeader.”Document Type”);2. SalesCommentLine.SETRANGE(“No.”,SalesQHeader.”No.”);3. WHILE SalesCommentLine.FIND(‘-‘) DO4. SalesCommentLine.DELETE;5. SalesCommentLine.”Document Type” := SalesOrderHeader.”Document Type”;6. SalesCommentLine.”No.” := SalesOrderHeader.”No.”;7. …