Coding Features
Automatically Insert Code
Code Templates a.k.a. Code Snippets are a concept that makes writing code easier. Many IDE’s have a similar feature. Certain code parts are repetitive and by using a template you can simplify writing code as the generic part of the code will be added by CodeGenius Studio. All you as a developer need to do is supply some variables if any.
Here are some examples:
IF SalesLine.FINDSET THEN
REPEAT
... Your custom code ...
UNTIL SalesLine.NEXT = 0;
CurrForm.UPDATE;
FILTERGROUP(0);
Basically any code could be considered a template. Base criteria is that you repeat some code regularly that may be slightly different. When it is different you would want to make a small change.
For example: you will not always write a FIND loop for the Sales Line table. You would want to be flexible in which table you want to loop through. CodeGenius Studio has the answer: Code Tags! You can define you own tags making CodeGenius Studio a very effective tool to help you insert repetitive code. When you hit a predefined hotkey the tags you have defined will require your input and after supplying the required info, CodeGenius Studio will insert the code for you.
CodeSmart code completion for Dynamics NAV 2013R2 and older versions
It’s that easy…