corrected the code
This commit is contained in:
parent
2a1d252e4a
commit
4eb73cb8d3
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue