deploy: 0652b72824
This commit is contained in:
parent
cbb4b02680
commit
d4c41c7a00
173 changed files with 3446 additions and 3445 deletions
|
|
@ -6,16 +6,16 @@
|
|||
<link rel=alternate type=application/rss+xml href=/bcbestpractices/index.xml title="AL Guidelines">
|
||||
<meta name=description content>
|
||||
<title>BC Dev. Best Practices :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545899 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545899></script>
|
||||
<link href=/css/nucleus.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559249 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559249></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/>
|
||||
|
|
@ -33,9 +33,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545899></script>
|
||||
<script src=/js/auto-complete.js?1639545899></script>
|
||||
<script src=/js/search.js?1639545899></script>
|
||||
<script src=/js/lunr.min.js?1639559249></script>
|
||||
<script src=/js/auto-complete.js?1639559249></script>
|
||||
<script src=/js/search.js?1639559249></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -267,12 +267,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545899></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545899></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545899></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545899></script>
|
||||
<script src=/js/featherlight.min.js?1639545899></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545899></script>
|
||||
<script src=/js/relearn.js?1639545899></script>
|
||||
<script src=/js/clipboard.min.js?1639559249></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559249></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559249></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559249></script>
|
||||
<script src=/js/featherlight.min.js?1639559249></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559249></script>
|
||||
<script src=/js/relearn.js?1639559249></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>begin as an 'After Word' :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/begin-as-an-afterword/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -287,12 +287,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Begin-End - Compound Only :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/begin-end/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -271,21 +271,21 @@ ALGuidelines.Dev
|
|||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>until</span> next<span style=color:#f92672>() </span>= <span style=color:#ae81ff>0</span>;
|
||||
<span style=color:#66d9ef>end</span>;
|
||||
</code></pre></div><h2 id=good-code>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-AL data-lang=AL><span style=color:#66d9ef>IF</span> FindSet<span style=color:#f92672>() </span><span style=color:#66d9ef>then</span>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-AL data-lang=AL><span style=color:#66d9ef>if</span> FindSet<span style=color:#f92672>() </span><span style=color:#66d9ef>then</span>
|
||||
<span style=color:#66d9ef>repeat</span>
|
||||
<span style=color:#f92672>...
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>until</span> next<span style=color:#f92672>() </span>= <span style=color:#ae81ff>0</span>;
|
||||
</code></pre></div><h2 id=bad-code-1>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-AL data-lang=AL><span style=color:#66d9ef>IF</span> IsAssemblyOutputLine <span style=color:#66d9ef>then</span> <span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#66d9ef>TestField</span><span style=color:#f92672>(</span>"Order Line No.",<span style=color:#ae81ff>0</span><span style=color:#f92672>)</span>;
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-AL data-lang=AL><span style=color:#66d9ef>if</span> IsAssemblyOutputLine <span style=color:#66d9ef>then</span> <span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#66d9ef>TestField</span><span style=color:#f92672>(</span>"Order Line No.", <span style=color:#ae81ff>0</span><span style=color:#f92672>)</span>;
|
||||
<span style=color:#66d9ef>end</span>;
|
||||
</code></pre></div><h2 id=good-code-1>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-AL data-lang=AL><span style=color:#66d9ef>IF</span> IsAssemblyOutputLine <span style=color:#66d9ef>then</span>
|
||||
<span style=color:#66d9ef>TestField</span><span style=color:#f92672>(</span>"Order Line No.",<span style=color:#ae81ff>0</span><span style=color:#f92672>)</span>;
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-AL data-lang=AL><span style=color:#66d9ef>if</span> IsAssemblyOutputLine <span style=color:#66d9ef>then</span>
|
||||
<span style=color:#66d9ef>TestField</span><span style=color:#f92672>(</span>"Order Line No.", <span style=color:#ae81ff>0</span><span style=color:#f92672>)</span>;
|
||||
</code></pre></div><h2 id=exception>Exception</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-AL data-lang=AL><span style=color:#75715e>// Except for this case
|
||||
</span><span style=color:#75715e></span><span style=color:#66d9ef>IF</span> X <span style=color:#66d9ef>then</span> <span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#66d9ef>IF</span> Y <span style=color:#66d9ef>then</span>
|
||||
</span><span style=color:#75715e></span><span style=color:#66d9ef>if</span> X <span style=color:#66d9ef>then</span> <span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#66d9ef>if</span> Y <span style=color:#66d9ef>then</span>
|
||||
<span style=color:#75715e>//DO SOMETHING;
|
||||
</span><span style=color:#75715e></span><span style=color:#66d9ef>end</span> <span style=color:#66d9ef>else</span>
|
||||
<span style=color:#f92672>(</span><span style=color:#f92672>not</span> X<span style=color:#f92672>)
|
||||
|
|
@ -304,12 +304,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Binary Operator to Start Line :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/binary-operator-line-start/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -286,12 +286,12 @@ Quantity -
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Comment Spacing :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/comments-spacing/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -282,12 +282,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>end else pair :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/end-else-pair/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -269,13 +269,14 @@ ALGuidelines.Dev
|
|||
<span style=color:#f92672>...
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>end</span>
|
||||
<span style=color:#66d9ef>else</span>
|
||||
<span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#f92672>...
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>end</span>;
|
||||
</code></pre></div><h2 id=good-code>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>if</span> OppEntry<span style=color:#f92672>.</span>Find<span style=color:#f92672>(</span><span style=color:#e6db74>'-'</span><span style=color:#f92672>) </span><span style=color:#66d9ef>then</span>
|
||||
<span style=color:#66d9ef>if</span> SalesCycleStage<span style=color:#f92672>.</span>Find<span style=color:#f92672>(</span><span style=color:#e6db74>'-'</span><span style=color:#f92672>) </span><span style=color:#66d9ef>then</span> <span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#f92672>...
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>end</span> <span style=color:#66d9ef>else</span>
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>end</span> <span style=color:#66d9ef>else</span> <span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#f92672>...
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>end</span>;
|
||||
</code></pre></div><h2 id=discussionshttpsgithubcommicrosoftalguidelinesdiscussionscategoriesbc-best-practicesdiscussions_qendelsepaircategory3a22bcbestpractices22><a href="https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=end+else/pair+category%3A%22BC+Best+Practices%22">Discussions</a></h2>
|
||||
|
|
@ -293,12 +294,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -6,16 +6,16 @@
|
|||
<link rel=alternate type=application/rss+xml href=/bcbestpractices/readability/index.xml title="AL Guidelines">
|
||||
<meta name=description content>
|
||||
<title>Readability :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545899 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545899 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545899></script>
|
||||
<link href=/css/nucleus.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559249 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559249 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559249></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/>
|
||||
|
|
@ -33,9 +33,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545899></script>
|
||||
<script src=/js/auto-complete.js?1639545899></script>
|
||||
<script src=/js/search.js?1639545899></script>
|
||||
<script src=/js/lunr.min.js?1639559249></script>
|
||||
<script src=/js/auto-complete.js?1639559249></script>
|
||||
<script src=/js/search.js?1639559249></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -274,12 +274,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545899></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545899></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545899></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545899></script>
|
||||
<script src=/js/featherlight.min.js?1639545899></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545899></script>
|
||||
<script src=/js/relearn.js?1639545899></script>
|
||||
<script src=/js/clipboard.min.js?1639559249></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559249></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559249></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559249></script>
|
||||
<script src=/js/featherlight.min.js?1639559249></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559249></script>
|
||||
<script src=/js/relearn.js?1639559249></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -3,7 +3,7 @@ Description When begin follows then, else, do, it should be on the same line, pr
|
|||
Bad code if ICPartnerRefType = ICPartnerRefType::&#34;Common Item No.&#34; then begin ... end; Good code if ICPartnerRefType = ICPartnerRefType::&#34;Common Item No.&#34; then begin ... 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 fee to create a new one with the same title as this article.</description></item><item><title>Begin-End - Compound Only</title><link>https://alguidelines.dev/bcbestpractices/readability/begin-end/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/begin-end/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Only use begin..end to enclose compound statements.
|
||||
Bad code if FindSet() then begin repeat ... until next() = 0; end; Good code IF FindSet() then repeat ... until next() = 0; Bad code IF IsAssemblyOutputLine then begin TestField(&#34;Order Line No.&#34;,0); end; Good code IF IsAssemblyOutputLine then TestField(&#34;Order Line No.&#34;,0); Exception // Except for this case IF X then begin IF Y then //DO SOMETHING; end else (not X) Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.</description></item><item><title>Binary Operator to Start Line</title><link>https://alguidelines.dev/bcbestpractices/readability/binary-operator-line-start/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/binary-operator-line-start/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Bad code if FindSet() then begin repeat ... until next() = 0; end; Good code if FindSet() then repeat ... until next() = 0; Bad code if IsAssemblyOutputLine then begin TestField(&#34;Order Line No.&#34;, 0); end; Good code if IsAssemblyOutputLine then TestField(&#34;Order Line No.&#34;, 0); Exception // Except for this case if X then begin if Y then //DO SOMETHING; end else (not X) Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.</description></item><item><title>Binary Operator to Start Line</title><link>https://alguidelines.dev/bcbestpractices/readability/binary-operator-line-start/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/binary-operator-line-start/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
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 fee to create a new one with the same title as this article.</description></item><item><title>Comment Spacing</title><link>https://alguidelines.dev/bcbestpractices/readability/comments-spacing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/comments-spacing/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
|
|
@ -11,7 +11,7 @@ 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 fee to create a new one with the same title as this article.</description></item><item><title>end else pair</title><link>https://alguidelines.dev/bcbestpractices/readability/end-else-pair/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/end-else-pair/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description The end else pair should always appear on the same line.
|
||||
Bad code if OppEntry.Find(&#39;-&#39;) then if SalesCycleStage.Find(&#39;-&#39;) then begin ... end else ... end; Good code if OppEntry.Find(&#39;-&#39;) then if SalesCycleStage.Find(&#39;-&#39;) then begin ... end else ... end; Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
|
||||
Bad code if OppEntry.Find(&#39;-&#39;) then if SalesCycleStage.Find(&#39;-&#39;) then begin ... end else begin ... end; Good code if OppEntry.Find(&#39;-&#39;) then if SalesCycleStage.Find(&#39;-&#39;) then begin ... end else begin ... 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 fee to create a new one with the same title as this article.</description></item><item><title>Keyword Pairs - Indentation</title><link>https://alguidelines.dev/bcbestpractices/readability/keyword-pairs-indentation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/keyword-pairs-indentation/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
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) then Good code if (x = y) and (a = b) then Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.</description></item><item><title>Line Start Keywords</title><link>https://alguidelines.dev/bcbestpractices/readability/line-start-keywords/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/line-start-keywords/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
|
|
@ -22,13 +22,13 @@ Description The repeat statement should always be alone on a line.
|
|||
Bad code if ReservEntry.FindSet() then repeat Good code if ReservEntry.FindSet() then repeat 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 fee to create a new one with the same title as this article.</description></item><item><title>Named Invocations</title><link>https://alguidelines.dev/bcbestpractices/readability/named-invocations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/named-invocations/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
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.
|
||||
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 fee to create a new one with the same title as this article.</description></item><item><title>One Statement Per Line</title><link>https://alguidelines.dev/bcbestpractices/readability/one-statement-per-line/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/one-statement-per-line/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description A line of code should not have more than one statement.
|
||||
Bad code if OppEntry.Find(&#39;-&#39;) then exit(); Good code if OppEntry.Find(&#39;-&#39;) then exit(); Bad code TotalCost += Cost; TotalAmt += Amt; Good code TotalCost += Cost; TotalAmt += Amt; Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
|
||||
Bad code if OppEntry.Find(&#39;-&#39;) then exit; Good code if OppEntry.Find(&#39;-&#39;) then exit; 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 fee to create a new one with the same title as this article.</description></item><item><title>Separate if and else</title><link>https://alguidelines.dev/bcbestpractices/readability/separate-if-and-else/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/separate-if-and-else/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description if and else statements should be on separate lines.
|
||||
Bad code if Atom = &#39;\&gt;&#39; then HasLogicalOperator := TRUE else begin ... end; Good code if Atom = &#39;\&gt;&#39; then HasLogicalOperator := true else begin ... end; Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
|
||||
Bad code if Atom = &#39;\&gt;&#39; then HasLogicalOperator := true else begin ... end; Good code if Atom = &#39;\&gt;&#39; then HasLogicalOperator := true else begin ... 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 fee to create a new one with the same title as this article.</description></item><item><title>Spacing Binary Operators</title><link>https://alguidelines.dev/bcbestpractices/readability/spacing-binary-operators/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/spacing-binary-operators/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
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(&#39;&lt;+&#39;+Format(Days+i)+&#39;D\&gt;&#39;,StartDate); Good code StartDate := CalcDate(&#39;&lt;+&#39; + Format(Days + i) + &#39;D\&gt;&#39;, StartDate); Bad code StartDate:=0D; // Initialize Good code StartDate := 0D; // Initialize</description></item><item><title>Suggested Abbreviations</title><link>https://alguidelines.dev/bcbestpractices/readability/suggested-abbreviations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/suggested-abbreviations/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
|
|
@ -36,7 +36,7 @@ Description Whenever possible, do not use abbreviations in variables, functions
|
|||
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.</description></item><item><title>Unnecessary 'else'</title><link>https://alguidelines.dev/bcbestpractices/readability/unnecessary-else/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/unnecessary-else/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description else should not be used when the last action in the then part is an exit, break, skip, quit, error.
|
||||
Bad code procedure SomeProcedure() begin if IsAdjmtBinCodeChanged then Error(AdjmtBinCodeChangeNotAllowedErr,...) else Error(BinCodeChangeNotAllowedErr,...); end; Good code procedure SomeProcedure() begin if IsAdjmtBinCodeChanged then Error(AdjmtBinCodeChangeNotAllowedErr,...) Error(BinCodeChangeNotAllowedErr,...); end; Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
|
||||
Bad code procedure SomeProcedure() begin if IsAdjmtBinCodeChanged() then Error(AdjmtBinCodeChangeNotAllowedErr, ...) else Error(BinCodeChangeNotAllowedErr, ...); end; Good code procedure SomeProcedure() begin if IsAdjmtBinCodeChanged() then Error(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 fee to create a new one with the same title as this article.</description></item><item><title>Unnecessary true/false</title><link>https://alguidelines.dev/bcbestpractices/readability/unnecessary-truefalse/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/unnecessary-truefalse/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description Do not use true or false keywords unnecessarily if the expression is already an logical expression.
|
||||
Bad code if IsPositive() = true then Good code if IsPositive() then Bad code if Complete &lt;&gt; true then Good code if not Complete then Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
|
||||
|
|
@ -47,4 +47,4 @@ Blanks, periods, and other characters (such as parentheses) that would make quot
|
|||
If a variable is a compound of two or more words or abbreviations, each word or abbreviation should begin with a capital letter.</description></item><item><title>Variables Declarations Order</title><link>https://alguidelines.dev/bcbestpractices/readability/variables-declarations-order/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/variables-declarations-order/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description Variables declarations should be ordered by type. In general, object and complex variable types are listed first followed by simple variables. The order should be:
|
||||
Record Report Codeunit XmlPort Page Query Notification BigText DateFormula RecordId RecordRef FieldRef FilterPageBuilder (Ref: Microsoft Docs)
|
||||
Bad code StartingDateFilter : Text; Vendor : Record Vendor; Good code Vendor : Record Vendor; StartingDateFilter : Text; Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.</description></item></channel></rss>
|
||||
Bad code StartingDateFilter: Text; Vendor: Record Vendor; Good code Vendor: Record Vendor; StartingDateFilter: Text; Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.</description></item></channel></rss>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Keyword Pairs - Indentation :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/keyword-pairs-indentation/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -285,12 +285,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Line Start Keywords :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/line-start-keywords/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -291,12 +291,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Lonely Repeat :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/lonely-repeat/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -283,12 +283,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Named Invocations :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/named-invocations/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -264,10 +264,10 @@ ALGuidelines.Dev
|
|||
<h2 id=description>Description</h2>
|
||||
<p>When calling an object statically use the Object Name, not the Object Id.</p>
|
||||
<h2 id=bad-code>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>Page</span><span style=color:#f92672>.</span>RunModal<span style=color:#f92672>(</span><span style=color:#ae81ff>525</span>,SalesShptLine<span style=color:#f92672>)
|
||||
</span></code></pre></div><h2 id=good-code>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>Page</span><span style=color:#f92672>.</span>RunModal<span style=color:#f92672>(</span><span style=color:#66d9ef>Page</span>::"Posted Sales Shipment Lines",SalesShptLine<span style=color:#f92672>)
|
||||
</span></code></pre></div><h2 id=discussionshttpsgithubcommicrosoftalguidelinesdiscussionscategoriesbc-best-practicesdiscussions_qnamedinvocationscategory3a22bcbestpractices22><a href="https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=named+invocations+category%3A%22BC+Best+Practices%22">Discussions</a></h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>Page</span><span style=color:#f92672>.</span>RunModal<span style=color:#f92672>(</span><span style=color:#ae81ff>525</span>, SalesShptLine<span style=color:#f92672>)</span>;
|
||||
</code></pre></div><h2 id=good-code>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>Page</span><span style=color:#f92672>.</span>RunModal<span style=color:#f92672>(</span><span style=color:#66d9ef>Page</span>::"Posted Sales Shipment Lines", SalesShptLine<span style=color:#f92672>)</span>;
|
||||
</code></pre></div><h2 id=discussionshttpsgithubcommicrosoftalguidelinesdiscussionscategoriesbc-best-practicesdiscussions_qnamedinvocationscategory3a22bcbestpractices22><a href="https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=named+invocations+category%3A%22BC+Best+Practices%22">Discussions</a></h2>
|
||||
<p>You can find discussions on all “Best Practices” <a href=https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices>here</a>.</p>
|
||||
<p>If you don’t find the discussion of this guideline, please feel fee to create a new one with the same title as this article.</p>
|
||||
<footer class=footline>
|
||||
|
|
@ -282,12 +282,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>One Statement Per Line :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/one-statement-per-line/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -266,10 +266,10 @@ ALGuidelines.Dev
|
|||
<h2 id=description>Description</h2>
|
||||
<p>A line of code should not have more than one statement.</p>
|
||||
<h2 id=bad-code>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>if</span> OppEntry<span style=color:#f92672>.</span>Find<span style=color:#f92672>(</span><span style=color:#e6db74>'-'</span><span style=color:#f92672>) </span><span style=color:#66d9ef>then</span> <span style=color:#66d9ef>exit</span><span style=color:#f92672>()</span>;
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>if</span> OppEntry<span style=color:#f92672>.</span>Find<span style=color:#f92672>(</span><span style=color:#e6db74>'-'</span><span style=color:#f92672>) </span><span style=color:#66d9ef>then</span> <span style=color:#66d9ef>exit</span>;
|
||||
</code></pre></div><h2 id=good-code>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>if</span> OppEntry<span style=color:#f92672>.</span>Find<span style=color:#f92672>(</span><span style=color:#e6db74>'-'</span><span style=color:#f92672>) </span><span style=color:#66d9ef>then</span>
|
||||
<span style=color:#66d9ef>exit</span><span style=color:#f92672>()</span>;
|
||||
<span style=color:#66d9ef>exit</span>;
|
||||
</code></pre></div><h2 id=bad-code-1>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> TotalCost <span style=color:#f92672>+=</span> Cost; TotalAmt <span style=color:#f92672>+=</span> Amt;
|
||||
</code></pre></div><h2 id=good-code-1>Good code</h2>
|
||||
|
|
@ -290,12 +290,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Separate if and else :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/separate-if-and-else/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -264,7 +264,7 @@ ALGuidelines.Dev
|
|||
<h2 id=description>Description</h2>
|
||||
<p><code>if</code> and <code>else</code> statements should be on separate lines.</p>
|
||||
<h2 id=bad-code>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>if</span> Atom = <span style=color:#e6db74>'\>'</span> <span style=color:#66d9ef>then</span> HasLogicalOperator <span style=color:#f92672>:=</span> TRUE <span style=color:#66d9ef>else</span> <span style=color:#66d9ef>begin</span>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>if</span> Atom = <span style=color:#e6db74>'\>'</span> <span style=color:#66d9ef>then</span> HasLogicalOperator <span style=color:#f92672>:=</span> true <span style=color:#66d9ef>else</span> <span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#f92672>...
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>end</span>;
|
||||
</code></pre></div><h2 id=good-code>Good code</h2>
|
||||
|
|
@ -288,12 +288,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Spacing Binary Operators :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/spacing-binary-operators/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -291,12 +291,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Suggested Abbreviations :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/suggested-abbreviations/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -1667,12 +1667,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Unnecessary 'else' :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/unnecessary-else/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -266,17 +266,17 @@ ALGuidelines.Dev
|
|||
<h2 id=bad-code>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>procedure</span> SomeProcedure<span style=color:#f92672>()
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#66d9ef>if</span> IsAdjmtBinCodeChanged <span style=color:#66d9ef>then</span>
|
||||
Error<span style=color:#f92672>(</span>AdjmtBinCodeChangeNotAllowedErr,<span style=color:#f92672>...)
|
||||
<span style=color:#66d9ef>if</span> IsAdjmtBinCodeChanged<span style=color:#f92672>() </span><span style=color:#66d9ef>then</span>
|
||||
Error<span style=color:#f92672>(</span>AdjmtBinCodeChangeNotAllowedErr, <span style=color:#f92672>...)
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>else</span>
|
||||
Error<span style=color:#f92672>(</span>BinCodeChangeNotAllowedErr,<span style=color:#f92672>...)</span>;
|
||||
Error<span style=color:#f92672>(</span>BinCodeChangeNotAllowedErr, <span style=color:#f92672>...)</span>;
|
||||
<span style=color:#66d9ef>end</span>;
|
||||
</code></pre></div><h2 id=good-code>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> <span style=color:#66d9ef>procedure</span> SomeProcedure<span style=color:#f92672>()
|
||||
</span><span style=color:#f92672> </span><span style=color:#66d9ef>begin</span>
|
||||
<span style=color:#66d9ef>if</span> IsAdjmtBinCodeChanged <span style=color:#66d9ef>then</span>
|
||||
Error<span style=color:#f92672>(</span>AdjmtBinCodeChangeNotAllowedErr,<span style=color:#f92672>...)
|
||||
</span><span style=color:#f92672> </span>Error<span style=color:#f92672>(</span>BinCodeChangeNotAllowedErr,<span style=color:#f92672>...)</span>;
|
||||
<span style=color:#66d9ef>if</span> IsAdjmtBinCodeChanged<span style=color:#f92672>() </span><span style=color:#66d9ef>then</span>
|
||||
Error<span style=color:#f92672>(</span>AdjmtBinCodeChangeNotAllowedErr, <span style=color:#f92672>...)
|
||||
</span><span style=color:#f92672> </span>Error<span style=color:#f92672>(</span>BinCodeChangeNotAllowedErr, <span style=color:#f92672>...)</span>;
|
||||
<span style=color:#66d9ef>end</span>;
|
||||
</code></pre></div><h2 id=discussionshttpsgithubcommicrosoftalguidelinesdiscussionscategoriesbc-best-practicesdiscussions_qunnecessaryelsecategory3a22bcbestpractices22><a href="https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=unnecessary+else+category%3A%22BC+Best+Practices%22">Discussions</a></h2>
|
||||
<p>You can find discussions on all “Best Practices” <a href=https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices>here</a>.</p>
|
||||
|
|
@ -293,12 +293,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Unnecessary true/false :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/unnecessary-truefalse/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -288,12 +288,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Variable Naming :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/variable-naming/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -271,13 +271,13 @@ ALGuidelines.Dev
|
|||
<p>Blanks, periods, and other characters (such as parentheses) that would make quotation marks around a variable necessary must be omitted.</p>
|
||||
<p>If a variable is a compound of two or more words or abbreviations, each word or abbreviation should begin with a capital letter.</p>
|
||||
<h2 id=bad-code>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> WIPBuffer : <span style=color:#66d9ef>Record</span> "Job WIP Buffer"
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> WIPBuffer: <span style=color:#66d9ef>Record</span> "Job WIP Buffer"
|
||||
</code></pre></div><h2 id=good-code>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> JobWIPBuffer : <span style=color:#66d9ef>Record</span> "Job WIP Buffer"
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> JobWIPBuffer: <span style=color:#66d9ef>Record</span> "Job WIP Buffer"
|
||||
</code></pre></div><h2 id=bad-code-1>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> Postline : <span style=color:#66d9ef>Codeunit</span> "Gen. Jnl.-Post Line";
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> Postline: <span style=color:#66d9ef>Codeunit</span> "Gen. Jnl.-Post Line";
|
||||
</code></pre></div><h2 id=good-code-1>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> GenJnlPostLine : <span style=color:#66d9ef>Codeunit</span> "Gen. Jnl.-Post Line";
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> GenJnlPostLine: <span style=color:#66d9ef>Codeunit</span> "Gen. Jnl.-Post Line";
|
||||
</code></pre></div><h2 id=bad-code-2>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> "Amount (LCY)": <span style=color:#66d9ef>Decimal</span>;
|
||||
</code></pre></div><h2 id=good-code-2>Good code</h2>
|
||||
|
|
@ -297,12 +297,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,16 +5,16 @@
|
|||
<meta name=generator content="Hugo 0.90.1">
|
||||
<meta name=description content>
|
||||
<title>Variables Declarations Order :: AL Guidelines</title>
|
||||
<link href=/css/nucleus.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639545896 rel=stylesheet>
|
||||
<link href=/css/print.css?1639545896 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639545896></script>
|
||||
<link href=/css/nucleus.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/variant.css?1639559246 rel=stylesheet>
|
||||
<link href=/css/print.css?1639559246 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1639559246></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/bcbestpractices/readability/variables-declarations-order/>
|
||||
|
|
@ -32,9 +32,9 @@ ALGuidelines.Dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1639545896></script>
|
||||
<script src=/js/auto-complete.js?1639545896></script>
|
||||
<script src=/js/search.js?1639545896></script>
|
||||
<script src=/js/lunr.min.js?1639559246></script>
|
||||
<script src=/js/auto-complete.js?1639559246></script>
|
||||
<script src=/js/search.js?1639559246></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -280,11 +280,11 @@ ALGuidelines.Dev
|
|||
</ul>
|
||||
<p>(Ref: <a href=https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0021>Microsoft Docs</a>)</p>
|
||||
<h2 id=bad-code>Bad code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> StartingDateFilter : <span style=color:#66d9ef>Text</span>;
|
||||
Vendor : <span style=color:#66d9ef>Record</span> Vendor;
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> StartingDateFilter: <span style=color:#66d9ef>Text</span>;
|
||||
Vendor: <span style=color:#66d9ef>Record</span> Vendor;
|
||||
</code></pre></div><h2 id=good-code>Good code</h2>
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> Vendor : <span style=color:#66d9ef>Record</span> Vendor;
|
||||
StartingDateFilter : <span style=color:#66d9ef>Text</span>;
|
||||
<div class=highlight><pre tabindex=0 style=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-al data-lang=al> Vendor: <span style=color:#66d9ef>Record</span> Vendor;
|
||||
StartingDateFilter: <span style=color:#66d9ef>Text</span>;
|
||||
</code></pre></div><h2 id=discussionshttpsgithubcommicrosoftalguidelinesdiscussionscategoriesbc-best-practicesdiscussions_qonevariablesdeclarationsordercategory3a22bcbestpractices22><a href="https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=one+variables+declarations+order+category%3A%22BC+Best+Practices%22">Discussions</a></h2>
|
||||
<p>You can find discussions on all “Best Practices” <a href=https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices>here</a>.</p>
|
||||
<p>If you don’t find the discussion of this guideline, please feel fee to create a new one with the same title as this article.</p>
|
||||
|
|
@ -300,12 +300,12 @@ ALGuidelines.Dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639545896></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639545896></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639545896></script>
|
||||
<script src=/js/featherlight.min.js?1639545896></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639545896></script>
|
||||
<script src=/js/relearn.js?1639545896></script>
|
||||
<script src=/js/clipboard.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1639559246></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1639559246></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1639559246></script>
|
||||
<script src=/js/featherlight.min.js?1639559246></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1639559246></script>
|
||||
<script src=/js/relearn.js?1639559246></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue