This commit is contained in:
JeremyVyska 2022-02-23 06:33:07 +00:00
parent 6101d38b0d
commit 77937b249a
189 changed files with 919 additions and 913 deletions

View file

@ -40,8 +40,8 @@ If you don’t find the discussion of this guideline, please feel free to cr
Description When begin follows then, else, do, it should be on the same line, preceded by one space character.
Bad code ifICPartnerRefType=ICPartnerRefType::"Common Item No."thenbegin... end;Good code ifICPartnerRefType=ICPartnerRefType::"Common Item No."thenbegin... end;Discussions You can find discussions on all “Best Practices” here.
If you don’t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -51,7 +51,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -69,7 +69,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -80,7 +80,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -43,8 +43,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Only use begin..end to enclose compound statements.
Bad code ifFindSet() thenbeginrepeat... untilnext() =0;end;Good code ifFindSet() thenrepeat... untilnext() =0;Bad code ifIsAssemblyOutputLinethenbeginTestField(&#34;Order Line No.&#34;,0);end;Good code ifIsAssemblyOutputLinethenTestField(&#34;Order Line No.&#34;,0);Exception // Except for this case ifXthenbeginifYthen//DO SOMETHING; endelse(notX) Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -54,7 +54,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -72,7 +72,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -83,7 +83,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -44,8 +44,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description Do not start a line with a binary operator.
Bad code &#34;Quantity to Ship&#34;:=Quantity-&#34;Quantity Shipped&#34;Good code &#34;Quantity to Ship&#34;:=Quantity-&#34;Quantity Shipped&#34;Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -55,7 +55,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -73,7 +73,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -84,7 +84,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -42,8 +42,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description A CASE action should start on a line after the possibility.
Bad code caseLetterof'A':Letter2:='10';'B':Letter2:='11';end;Good code caseLetterof'A':Letter2:='10';'B':Letter2:='11';end;Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -53,7 +53,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -71,7 +71,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -82,7 +82,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -42,8 +42,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description Always start comments with // followed by one space character.
Bad code RowNo+=1000;//Move way below the budget Good code RowNo+=1000;// Move way below the budget Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -53,7 +53,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -71,7 +71,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -82,7 +82,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -37,8 +37,8 @@ Bad code EmptyTableWLD.SetRange(Code,'AJ');EmptyTableWLD.DeleteAll(true);Good co
<meta name=twitter:description content="<Created by waldo, Described by waldo>
Description When you perform a &ldquo;DeleteAll&rdquo; when there is nothing to delete, it will still perform a lock. When you for example perform a DeleteAll on an empty table, it will result in a table lock. Therefore it&rsquo;s good practice to always check if the table is empty when performing a DeleteAll.
Bad code EmptyTableWLD.SetRange(Code,'AJ');EmptyTableWLD.DeleteAll(true);Good code EmptyTableWLD.SetRange(Code,'AJ');ifnotEmptyTableWLD.IsEmpty() thenEmptyTableWLD.DeleteAll(true);Discussions You can discuss the guideline here">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -48,7 +48,7 @@ Bad code EmptyTableWLD.SetRange(Code,'AJ');EmptyTableWLD.DeleteAll(true);Good co
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -66,7 +66,7 @@ Bad code EmptyTableWLD.SetRange(Code,'AJ');EmptyTableWLD.DeleteAll(true);Good co
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -77,7 +77,7 @@ Bad code EmptyTableWLD.SetRange(Code,'AJ');EmptyTableWLD.DeleteAll(true);Good co
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -42,8 +42,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description The end else pair should always appear on the same line.
Bad code ifOppEntry.Find('-') thenifSalesCycleStage.Find('-') thenbegin... endelsebegin... end;Good code ifOppEntry.Find('-') thenifSalesCycleStage.Find('-') thenbegin... endelsebegin... end;Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -53,7 +53,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -71,7 +71,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -82,7 +82,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -30,8 +30,8 @@
<meta name=twitter:title content="Best Practices">
<meta name=twitter:description content="AL Code Best Practices
">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -41,7 +41,7 @@
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -59,7 +59,7 @@
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -70,7 +70,7 @@
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -40,8 +40,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description The if..then pair, while..do pair, and for..do pair must appear on the same line or the same level of indentation. If possible, you can align the lines it is even much more readable.
Bad code if(x=y) and(a=b) thenGood code if(x=y) and(a=b) thenDiscussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -51,7 +51,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -69,7 +69,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -80,7 +80,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -41,8 +41,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description The end, if, repeat, for, while, else and case statement should always start a line.
Bad code ifIsContactNamethenValidateContactName() elseifIsSalespersonCodethenValidateSalespersonCode() elseifIsSalesCycleCodethenValidatSalesCycleCode();Good code ifIsContactNamethenValidateContactName() elseifIsSalespersonCodethenValidateSalespersonCode() elseifIsSalesCycleCodethenValidatSalesCycleCode();Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -52,7 +52,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -70,7 +70,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -81,7 +81,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -42,8 +42,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description The repeat statement should always be alone on a line.
Bad code ifReservEntry.FindSet() thenrepeatGood code ifReservEntry.FindSet() thenrepeatDiscussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -53,7 +53,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -71,7 +71,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -82,7 +82,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -42,8 +42,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description When calling an object statically use the Object Name, not the Object Id.
Bad code Page.RunModal(525,SalesShptLine);Good code Page.RunModal(Page::&#34;Posted Sales Shipment Lines&#34;,SalesShptLine);Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -53,7 +53,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -71,7 +71,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -82,7 +82,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -42,8 +42,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description A line of code should not have more than one statement.
Bad code ifOppEntry.Find('-') thenexit;Good code ifOppEntry.Find('-') thenexit;Bad code TotalCost+=Cost;TotalAmt+=Amt;Good code TotalCost+=Cost;TotalAmt+=Amt;Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -53,7 +53,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -71,7 +71,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -82,7 +82,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -42,8 +42,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description if and else statements should be on separate lines.
Bad code ifAtom='\>'thenHasLogicalOperator:=trueelsebegin... end;Good code ifAtom='\>'thenHasLogicalOperator:=trueelsebegin... end;Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -53,7 +53,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -71,7 +71,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -82,7 +82,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -37,8 +37,8 @@ Bad code &#34;Line Discount %&#34;:=&#34;Line Discount Amount&#34;/&#34;Line Val
<meta name=twitter:description content="Created by Microsoft, Described by waldo
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 a space after the comma.
Bad code &#34;Line Discount %&#34;:=&#34;Line Discount Amount&#34;/&#34;Line Value&#34;*100;Good code &#34;Line Discount %&#34;:=&#34;Line Discount Amount&#34;/&#34;Line Value&#34;*100;Bad code StartDate:=CalcDate('<+'+Format(Days+i)+'D\>',StartDate);Good code StartDate:=CalcDate('<+'+Format(Days+i) +'D\>',StartDate);Bad code StartDate:=0D;// Initialize Good code StartDate:=0D;// Initialize ">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -48,7 +48,7 @@ Bad code &#34;Line Discount %&#34;:=&#34;Line Discount Amount&#34;/&#34;Line Val
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -66,7 +66,7 @@ Bad code &#34;Line Discount %&#34;:=&#34;Line Discount Amount&#34;/&#34;Line Val
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -77,7 +77,7 @@ Bad code &#34;Line Discount %&#34;:=&#34;Line Discount Amount&#34;/&#34;Line Val
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -40,8 +40,8 @@ Keep the codeunit as small as possible Every time a subscriber gets called, a ne
Description In general, subscribers have to be put in codeunits. There are a few performance considerations that you should keep in the back of your minds, when designing such a codeunit.
Keep the codeunit as small as possible Work with a single instance codeunit only subscribe when necessary Avoid generic OnInsert/OnModify/OnDelete Let&rsquo;s discuss all points
Keep the codeunit as small as possible Every time a subscriber gets called, a new instance of the codeunit is being loaded in memory, which takes memory and processing power.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -51,7 +51,7 @@ Keep the codeunit as small as possible Every time a subscriber gets called, a ne
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -69,7 +69,7 @@ Keep the codeunit as small as possible Every time a subscriber gets called, a ne
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -80,7 +80,7 @@ Keep the codeunit as small as possible Every time a subscriber gets called, a ne
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -41,8 +41,8 @@ If there is no other choice, then use the suggestions below.
Description Whenever possible, do not use abbreviations in variables, functions and objects names.
If there is no other choice, then use the suggestions below.
word Abbreviation absence Abs account Acc accounting Acc accumulated Accum action Act activity Activ additional Add address Addr adjust Adj adjusted Adjd adjustment Adjmt agreement Agrmt allocation Alloc allowance Allow alternative Alt amount Amt amounts Amts answer Ans applies Appl application Appln arrival Arriv assembly Asm assemble to order ATO assignment Assgnt associated Assoc attachment Attmt authorities Auth automatic Auto availability Avail average Avg ba db.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -52,7 +52,7 @@ If there is no other choice, then use the suggestions below.
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -70,7 +70,7 @@ If there is no other choice, then use the suggestions below.
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -81,7 +81,7 @@ If there is no other choice, then use the suggestions below.
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -40,8 +40,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description else should not be used when the last action in the then part is an exit, break, skip, quit, error.
Bad code procedureSomeProcedure() beginifIsAdjmtBinCodeChanged() thenError(AdjmtBinCodeChangeNotAllowedErr,...) elseError(BinCodeChangeNotAllowedErr,...);end;Good code procedureSomeProcedure() beginifIsAdjmtBinCodeChanged() thenError(AdjmtBinCodeChangeNotAllowedErr,...) Error(BinCodeChangeNotAllowedErr,...);end;Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -51,7 +51,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -69,7 +69,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -80,7 +80,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -40,8 +40,8 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
Description Do not use true or false keywords unnecessarily if the expression is already an logical expression.
Bad code ifIsPositive() =truethenGood code ifIsPositive() thenBad code ifComplete<>truethenGood code ifnotCompletethenDiscussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -51,7 +51,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -69,7 +69,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -80,7 +80,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -44,8 +44,8 @@ Description Variables that refer to a AL object must contain the objects name, a
A variable must begin with a capital letter.
Blanks, periods, and other characters (such as parentheses) that would make quotation marks around a variable necessary must be omitted.
If a variable is a compound of two or more words or abbreviations, each word or abbreviation should begin with a capital letter.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -55,7 +55,7 @@ If a variable is a compound of two or more words or abbreviations, each word or
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -73,7 +73,7 @@ If a variable is a compound of two or more words or abbreviations, each word or
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -84,7 +84,7 @@ If a variable is a compound of two or more words or abbreviations, each word or
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>

View file

@ -43,8 +43,8 @@ Description Variables declarations should be ordered by type. In general, object
Record Report Codeunit XmlPort Page Query Notification BigText DateFormula RecordId RecordRef FieldRef FilterPageBuilder (Ref: Microsoft Docs)
Bad code StartingDateFilter:Text;Vendor:RecordVendor;Good code Vendor:RecordVendor;StartingDateFilter:Text;Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
If you don&rsquo;t find the discussion of this guideline, please feel free to create a new one with the same title as this article.">
<link rel=preload href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css as=style>
<link href=/scss/main.min.465d5fa0bd58415aee47bc5a1c5d8deee19fe158cff814bc698ee863ea6b68eb.css rel=stylesheet integrity>
<link rel=preload href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css as=style>
<link href=/scss/main.min.c1ea95e542999dd0d5de472122a143b80206066f481554662ffc3a788ef24b2c.css rel=stylesheet integrity>
<script src=https://code.jquery.com/jquery-3.6.0.min.js integrity=sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK crossorigin=anonymous></script>
<script src=https://unpkg.com/lunr@2.3.9/lunr.min.js integrity=sha384-203J0SNzyqHby3iU6hzvzltrWi/M41wOP5Gu+BiJMz5nwKykbkUx8Kp7iti0Lpli crossorigin=anonymous></script>
</head>
@ -54,7 +54,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<a class=navbar-brand href=/>
<img src=/images/alguidelines-bclogo-pattern-white.png height=32px>
<span class="font-weight-bold show-desktop">alguidelines.dev - Business Central Design Patterns</span>
<span class="font-weight-bold show-mobile" style=display:inline>alguidelines.dev</span>
<span class="font-weight-bold show-mobile-inline">alguidelines.dev</span>
</a>
<div class="td-navbar-nav-scroll ml-md-auto" id=main_navbar>
<ul class="navbar-nav mt-2 mt-lg-0">
@ -72,7 +72,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
</li>
</ul>
</div>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<div class="navbar-nav d-none d-lg-block"><input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
</div>
</nav>
</header>
@ -83,7 +83,7 @@ If you don&rsquo;t find the discussion of this guideline, please feel free to cr
<div id=td-sidebar-menu class=td-sidebar__inner>
<div id=content-mobile>
<form class="td-sidebar__search d-flex align-items-center">
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.603c40ef8c314f561eb308b4377e7f3c.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<input type=search class="form-control td-search-input" placeholder="&#xf002; Search this site…" aria-label="Search this site…" autocomplete=off data-offline-search-index-json-src=/offline-search-index.16155e6a127efbc5f5c6e1a4492dd4fd.json data-offline-search-base-href=/ data-offline-search-max-results=10>
<button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type=button data-toggle=collapse data-target=#td-section-nav aria-controls=td-docs-nav aria-expanded=false aria-label="Toggle section navigation">
</button>
</form>