Programming in AL is very easy, just we need to make up our mind to accept the changes. Till we resist to changes it seems to be hard once we accept it, that becomes easy.
In VS Code, for AL it provides Snippets which help you with creating your base structure following which you can easy build up your complex coding structures.
Few Snippets ready to use are as below:
To Create Structure of | Snippet to use |
Table | ttable |
Page | tpage |
Codeunit | tcodeunit |
Page Extension | tpageext |
Table Extension | ttableext |
Table Field | tfield |
Page Field | tfieldpage |
Trigger | ttriger |
Functions/Procedure | tprocedure |
Assert error | tassert |
With Do | twithdo |
If | tif |
If Else | tifelse |
Case of | tcaseof |
Case else | tcaseelse |
For | tfor |
While | twhile |
Repeat Until | trepeat |
Today I will explain on conditional and loop statements for others I will do in next post.
These statements are similar as we are familiar with using in our C/AL.
Below are few examples to explain them, since no changes so need not commentary for same.
For other Snippets will come in next post.
You must be logged in to post a comment.