O'Reilly logo

Programming Microsoft Dynamics™ NAV 2015 by Christopher Studebaker, David Studebaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C/AL syntax

C/AL syntax is relatively simple and straightforward. The basic structure of most C/AL statements is essentially similar to what we learned with other programming languages. C/AL is modeled on Pascal and tends to use many of the same special characters and syntax practices.

Assignment and punctuation

Assignment is represented with a colon followed by an equal sign, the combination being treated as a single symbol. The evaluated value of the expression, to the right of the assignment symbol, is assigned to the variable on the left-side.

"Phone No." := '312-555-1212';

All statements are terminated with a semi-colon. Multiple statements can be placed on a single program line, but that makes the code hard for others to read.

Fully qualified ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required