formatted nav patterns 2 to 4

This commit is contained in:
christianbraeunlich 2022-02-05 19:44:44 +01:00
parent 2fad891a77
commit f1f4aab1d7
55 changed files with 788 additions and 506 deletions

View file

@ -3,30 +3,37 @@ title = "Variable Already Scoped"
weight = 1400
+++
Do not use scope ''.'' qualifier unnecessarily when a variable is already implicitly or explicitly scoped. It keeps the code simpler.
Bad code
ReturnRcptHeader.SETRANGE(ReturnRcptHeader."Return Order No.","Document No.");
```al
ReturnRcptHeader.SETRANGE(ReturnRcptHeader."Return Order No.","Document No.");
```
Good code
ReturnRcptHeader.SETRANGE("Return Order No.","Document No.");
```al
ReturnRcptHeader.SETRANGE("Return Order No.","Document No.");
```
Bad code
WITH ChangeLogSetupTable DO BEGIN
```al
WITH ChangeLogSetupTable DO BEGIN
...
IF ChangeLogSetupTable.DELETE THEN
...
END;
...
END;
```
Good code
WITH ChangeLogSetupTable DO BEGIN
```al
WITH ChangeLogSetupTable DO BEGIN
...
IF DELETE THEN
...
END;
...
END;
```