Tag Archives: C/AL

How to copy a function in Dynamics NAV C/Side

From the Functions list right click on the bar to the right and click copy, select a new blank line, and click paste.

I know, dead simple right? Some times it helps to have these things out there as it’s easy to miss that this is possible in C/Side.

Advertisements
Tagged , ,

Foreach in CAL

So when I go to do this again I will have something to refer back to:

WITH r_RecordVariableName DO BEGIN
  // SetFilters and SetRanges
  IF FIND('-') THEN BEGIN
    REPEAT
      ForEachRecordDoThis();
    UNTIL NEXT = 0;
  END;
END;

Tagged ,