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

@ -2,14 +2,20 @@
title = "Colon usage in CASE"
weight = 340
+++
The last possibility on a CASE statement must be immediately followed by a colon. Bad code
The last possibility on a CASE statement must be immediately followed by a colon.
CASE DimOption OF
Bad code
```al
CASE DimOption OF
DimOption::"Global Dimension 1" :
DimValue."Dimension Code" := GLSetup."Global Dimension 1 Code";
DimValue."Dimension Code" := GLSetup."Global Dimension 1 Code";
```
Good code
CASE DimOption OF
```al
CASE DimOption OF
DimOption::"Global Dimension 1":
DimValue."Dimension Code" := GLSetup."Global Dimension 1 Code";
DimValue."Dimension Code" := GLSetup."Global Dimension 1 Code";
```