added caption for each example

This commit is contained in:
Christian Bräunlich 2022-05-05 16:16:27 +00:00
parent 5652ea8c5d
commit 6162a121be
5 changed files with 48 additions and 24 deletions

View file

@ -10,37 +10,43 @@ _Created by Microsoft, Described by waldo_
There must be exactly one space character on each side of a binary operator such as = + - AND OR =. The parameter comma operator however, should have a space after the comma.
## Bad code
## Example 1
### Bad code
```al
"Line Discount %" := "Line Discount Amount"/"Line Value"*100;
```
## Good code
### Good code
```al
"Line Discount %" := "Line Discount Amount" / "Line Value" * 100;
```
## Bad code
## Example 2
### Bad code
```al
StartDate := CalcDate('<+'+Format(Days+i)+'D\>',StartDate);
```
## Good code
### Good code
```al
StartDate := CalcDate('<+' + Format(Days + i) + 'D\>', StartDate);
```
## Bad code
## Example 3
### Bad code
```al
StartDate:=0D; // Initialize
```
## Good code
### Good code
```al
StartDate := 0D; // Initialize