Tag: BEGIN-END
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. …
NAV2013 Beta to RTM – Some Striking Code Changes #6: Redundant BEGIN … END
Read with me what the Microsoft Dynamics NAV 2009 Developer and IT Pro Documentation phrases on BEGIN/END, i.e. compound, statement: In some cases, the C/AL syntax only allows you to use a single statement. If however you have to execute more than one simple statement, the statements can be written…
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. …
NAV2013 Beta to RTM – Some Striking Code Changes #6: Redundant BEGIN … END
Read with me what the Microsoft Dynamics NAV 2009 Developer and IT Pro Documentation phrases on BEGIN/END, i.e. compound, statement: In some cases, the C/AL syntax only allows you to use a single statement. If however you have to execute more than one simple statement, the statements can be written…