corrected the code

This commit is contained in:
waldo 2021-12-14 11:50:50 +01:00
parent 2a1d252e4a
commit 4eb73cb8d3

View file

@ -6,30 +6,30 @@ weight = 1120
<_Created by Microsoft, Described by waldo_\> <_Created by Microsoft, Described by waldo_\>
## Description ## Description
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 no spaces. 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 ## Bad code
```al ```al
"Line Discount %" := "Line Discount Amount"/"Line Value"\*100; "Line Discount %" := "Line Discount Amount"/"Line Value"*100;
``` ```
## Good code ## Good code
```al ```al
"Line Discount %" := "Line Discount Amount" / "Line Value" \* 100; "Line Discount %" := "Line Discount Amount" / "Line Value" * 100;
``` ```
## Bad code ## Bad code
```al ```al
StartDate := CalcDate('<+'+Format(Days+i)+'D\>', StartDate); StartDate := CalcDate('<+'+Format(Days+i)+'D\>',StartDate);
``` ```
## Good code ## Good code
```al ```al
StartDate := CalcDate('<+' + Format(Days + i) + 'D\>',StartDate); StartDate := CalcDate('<+' + Format(Days + i) + 'D\>', StartDate);
``` ```
## Bad code ## Bad code