alguidelines/content/docs/BestPractices/begin-as-an-afterword/index.md
2022-02-23 01:09:10 -08:00

743 B

title tags categories
begin as an afterword
Readability
Best Practice

Created by Microsoft, Described by waldo

Description

When begin follows then, else, do, it should be on the same line, preceded by one space character.

Bad code

    if ICPartnerRefType = ICPartnerRefType::"Common Item No." then
    begin
    ...
    end;

Good code

    if ICPartnerRefType = ICPartnerRefType::"Common Item No." then begin
    ...
    end;

Discussion

Discuss this Best Practice here

You can find discussions on all "Best Practices" here.