From a135d8b92c64af897c04e40bee144926511c10e6 Mon Sep 17 00:00:00 2001 From: TheDoubleH Date: Tue, 14 Dec 2021 21:31:38 +0000 Subject: [PATCH] deploy: 56ac137f7ce16b8e6713b5adba91df0dedc2089c --- 404.html | 16 +- bcbestpractices/index.html | 41 +-- .../begin-as-an-afterword/index.html | 41 +-- .../readability/begin-end/index.html | 41 +-- .../binary-operator-line-start/index.html | 41 +-- .../readability/comments-spacing/index.html | 43 +-- .../readability/end-else-pair/index.html | 302 ++++++++++++++++++ bcbestpractices/readability/index.html | 41 +-- bcbestpractices/readability/index.xml | 3 + .../keyword-pairs-indentation/index.html | 43 +-- .../readability/lonely-repeat/index.html | 41 +-- .../readability/named-invocations/index.html | 41 +-- .../one-statement-per-line/index.html | 41 +-- .../separate-if-and-else/index.html | 41 +-- .../spacing-binary-operators/index.html | 41 +-- .../suggested-abbreviations/index.html | 41 +-- .../readability/unnecessary-else/index.html | 41 +-- .../unnecessary-truefalse/index.html | 41 +-- .../readability/variable-naming/index.html | 41 +-- .../variables-declarations-order/index.html | 41 +-- bcpatterns/facade-pattern/index.html | 41 +-- bcpatterns/generic-method-pattern/index.html | 41 +-- bcpatterns/index.html | 41 +-- categories/index.html | 41 +-- contributing/forkandpr/index.html | 41 +-- contributing/formattingtips/index.html | 41 +-- contributing/index.html | 41 +-- contributing/templates/guidelines/index.html | 41 +-- contributing/templates/index.html | 41 +-- contributing/templates/patterns/index.html | 41 +-- contributing/theapprovalprocess/index.html | 41 +-- index.html | 41 +-- index.json | 2 +- .../1-patterns/activity-log/index.html | 41 +-- .../1-patterns/argument-table/index.html | 41 +-- .../data-driven-blocked-entity/index.html | 41 +-- .../1-patterns/blocked-entity/index.html | 41 +-- .../cached-web-service-calls/index.html | 41 +-- .../conditional-cascading-update/index.html | 41 +-- .../1-patterns/copy-document/index.html | 41 +-- .../create-data-from-templates/index.html | 41 +-- .../create-urls-to-nav-clients/index.html | 41 +-- .../creating-custom-charts/index.html | 41 +-- .../cross-session-events/index.html | 41 +-- .../currently-active-record/index.html | 41 +-- .../data-migration-facade/index.html | 41 +-- .../1-patterns/discovery-event/index.html | 41 +-- navpatterns/1-patterns/document/index.html | 41 +-- .../index.html | 41 +-- .../error-message-processing/index.html | 41 +-- .../index.html | 41 +-- .../index.html | 41 +-- navpatterns/1-patterns/hooks/index.html | 41 +-- .../index.html | 41 +-- navpatterns/1-patterns/index.html | 41 +-- .../instructions-in-the-ui/index.html | 41 +-- .../integration-of-addresses/index.html | 41 +-- .../journal-error-processing/index.html | 41 +-- .../journal-template-batch-line/index.html | 41 +-- navpatterns/1-patterns/master-data/index.html | 41 +-- .../1-patterns/multi-file-download/index.html | 41 +-- .../1-patterns/multi-page-list/index.html | 41 +-- .../multilanguage-application-data/index.html | 41 +-- .../net-exception-handling-in-cal/index.html | 41 +-- .../index.html | 41 +-- navpatterns/1-patterns/no-series/index.html | 41 +-- .../in-context-notifications/index.html | 41 +-- .../1-patterns/notifications/index.html | 41 +-- .../index.html | 41 +-- navpatterns/1-patterns/observer/index.html | 41 +-- .../index.html | 41 +-- .../1-patterns/product-name/index.html | 41 +-- navpatterns/1-patterns/queries/index.html | 41 +-- .../select-distinct-with-queries/index.html | 41 +-- .../index.html | 41 +-- .../index.html | 41 +-- .../index.html | 41 +-- .../1-patterns/released-entity/index.html | 41 +-- .../1-patterns/report-selection/index.html | 41 +-- .../1-sensitive-data-encapsulation/index.html | 41 +-- .../security/2-data-encryption/index.html | 41 +-- .../3-single-point-of-access/index.html | 41 +-- .../security/4-masked-text/index.html | 41 +-- .../security/5-ssl-in-nav/index.html | 41 +-- navpatterns/1-patterns/security/index.html | 41 +-- .../setup-specificity-fallback/index.html | 41 +-- .../index.html | 41 +-- navpatterns/1-patterns/singleton/index.html | 41 +-- .../singleton/singleton-codeunit/index.html | 41 +-- .../singleton-table/cue-table/index.html | 41 +-- .../singleton/singleton-table/index.html | 41 +-- .../singleton-table/setup-table/index.html | 41 +-- .../1-patterns/standard-journal/index.html | 41 +-- .../temporary-dataset-report/index.html | 41 +-- .../index.html | 41 +-- .../transfer-custom-fields/index.html | 41 +-- .../1-patterns/variant-facade/index.html | 41 +-- navpatterns/2-anti-patterns/index.html | 41 +-- .../2-anti-patterns/nav-upgrade/index.html | 41 +-- .../2-anti-patterns/reusable-bugs/index.html | 41 +-- .../design/by-reference-parameters/index.html | 41 +-- .../design/class-coupling/index.html | 41 +-- .../design/cyclomatic-complexity/index.html | 41 +-- .../index.html | 41 +-- .../findset-findfirst-findlast/index.html | 41 +-- .../3-cal-coding-guidelines/design/index.html | 41 +-- .../design/initialized-variables/index.html | 41 +-- .../design/maintainability-index/index.html | 41 +-- .../design/parameter-placeholders/index.html | 41 +-- .../static-object-invocation/index.html | 41 +-- .../design/unreachable-code/index.html | 41 +-- .../unused-initialized-variables/index.html | 41 +-- .../design/unused-variables/index.html | 41 +-- .../variable-capacity-mismatch/index.html | 41 +-- .../with-scope-name-collision/index.html | 41 +-- .../3-cal-coding-guidelines/index.html | 41 +-- .../internally-used-dot-net-types/index.html | 41 +-- .../internationalization/index.html | 41 +-- .../using-calcdate/index.html | 41 +-- .../captionml-for-system-tables/index.html | 41 +-- .../fieldcaption-and-tablecaption/index.html | 41 +-- .../global-text-constants/index.html | 41 +-- .../localizability/index.html | 41 +-- .../use-text-constants/index.html | 41 +-- .../using-optioncaptionml/index.html | 41 +-- .../begin-as-an-afterword/index.html | 41 +-- .../readability/begin-end/index.html | 41 +-- .../binary-operator-line-start/index.html | 41 +-- .../readability/blank-lines/index.html | 41 +-- .../readability/case-actions/index.html | 41 +-- .../colon-usage-in-case/index.html | 41 +-- .../comments-curly-brackets/index.html | 41 +-- .../readability/comments-spacing/index.html | 41 +-- .../readability/end-else-pair/index.html | 41 +-- .../readability/indentation/index.html | 41 +-- .../readability/index.html | 41 +-- .../keyword-pairs-indentation/index.html | 41 +-- .../line-start-keywords/index.html | 41 +-- .../readability/lonely-repeat/index.html | 41 +-- .../readability/named-invocations/index.html | 41 +-- .../readability/nested-withs/index.html | 41 +-- .../one-statement-per-line/index.html | 41 +-- .../separate-if-and-else/index.html | 41 +-- .../spacing-binary-operators/index.html | 41 +-- .../spacing-brackets-and/index.html | 41 +-- .../spacing-unary-operators/index.html | 41 +-- .../suggested-abbreviations/index.html | 41 +-- .../temporary-variable-naming/index.html | 41 +-- .../readability/textconst-suffixes/index.html | 41 +-- .../unary-operator-line-end/index.html | 41 +-- .../index.html | 41 +-- .../readability/unnecessary-else/index.html | 41 +-- .../index.html | 41 +-- .../unnecessary-separators/index.html | 41 +-- .../unnecessary-truefalse/index.html | 41 +-- .../variable-already-scoped/index.html | 41 +-- .../readability/variable-naming/index.html | 41 +-- .../variables-declarations-order/index.html | 41 +-- .../ux/actions-images/index.html | 41 +-- .../ux/confirm/index.html | 41 +-- .../ux/fielderror/index.html | 41 +-- .../3-cal-coding-guidelines/ux/index.html | 41 +-- .../ux/message-and-error/index.html | 41 +-- .../4-get-involved/code-of-conduct/index.html | 41 +-- navpatterns/4-get-involved/index.html | 41 +-- .../patterns-authors/index.html | 41 +-- .../index.html | 41 +-- navpatterns/index.html | 41 +-- navpatterns/related-links/index.html | 41 +-- sitemap.xml | 2 +- tags/index.html | 41 +-- welcome/index.html | 41 +-- 172 files changed, 3824 insertions(+), 3352 deletions(-) create mode 100644 bcbestpractices/readability/end-else-pair/index.html diff --git a/404.html b/404.html index 9cf1cbc8..2129b7b8 100644 --- a/404.html +++ b/404.html @@ -5,14 +5,14 @@ 404 Page not found :: AL Guidelines - - - - - - - - + + + + + + + + diff --git a/bcbestpractices/index.html b/bcbestpractices/index.html index b28195bd..00a6a9e2 100644 --- a/bcbestpractices/index.html +++ b/bcbestpractices/index.html @@ -6,16 +6,16 @@ BC Dev. Best Practices :: AL Guidelines - - - - - - - - - - + + + + + + + + + + @@ -33,9 +33,9 @@ ALGuidelines.Dev - - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - - - - - + + + + + + + \ No newline at end of file diff --git a/bcbestpractices/readability/end-else-pair/index.html b/bcbestpractices/readability/end-else-pair/index.html new file mode 100644 index 00000000..bc0d788f --- /dev/null +++ b/bcbestpractices/readability/end-else-pair/index.html @@ -0,0 +1,302 @@ + + + + + + +end else pair :: AL Guidelines + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+

end else pair

+

<Created by Microsoft, Described by waldo>

+

Description

+

The end else pair should always appear on the same line.

+

Bad code

+
    if OppEntry.Find('-') then
+        if SalesCycleStage.Find('-') then begin
+        ...
+        end
+        else
+        ... 
+        end;
+

Good code

+
    if OppEntry.Find('-') then
+        if SalesCycleStage.Find('-') then begin
+        ...
+        end else
+        ...
+        end;
+

Discussions

+

You can find discussions on all “Best Practices” here.

+

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.

+
+
+
+
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/bcbestpractices/readability/index.html b/bcbestpractices/readability/index.html index ada73886..12b5d6a7 100644 --- a/bcbestpractices/readability/index.html +++ b/bcbestpractices/readability/index.html @@ -6,16 +6,16 @@ Readability :: AL Guidelines - - - - - - - - - - + + + + + + + + + + @@ -33,9 +33,9 @@ ALGuidelines.Dev - - - + + +
- - - + + +
- - - - - - - + + + + + + + \ No newline at end of file diff --git a/bcbestpractices/readability/lonely-repeat/index.html b/bcbestpractices/readability/lonely-repeat/index.html index f9e9b761..2df44f1d 100644 --- a/bcbestpractices/readability/lonely-repeat/index.html +++ b/bcbestpractices/readability/lonely-repeat/index.html @@ -5,16 +5,16 @@ Lonely Repeat :: AL Guidelines - - - - - - - - - - + + + + + + + + + + @@ -32,9 +32,9 @@ ALGuidelines.Dev - - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - - - - - + + + + + + + \ No newline at end of file diff --git a/navpatterns/1-patterns/blocked-entity/data-driven-blocked-entity/index.html b/navpatterns/1-patterns/blocked-entity/data-driven-blocked-entity/index.html index 9548d9dc..86650eaf 100644 --- a/navpatterns/1-patterns/blocked-entity/data-driven-blocked-entity/index.html +++ b/navpatterns/1-patterns/blocked-entity/data-driven-blocked-entity/index.html @@ -5,16 +5,16 @@ Data Driven Blocked Entity :: AL Guidelines - - - - - - - - - - + + + + + + + + + + @@ -32,9 +32,9 @@ ALGuidelines.Dev - - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - - - - - + + + + + + + \ No newline at end of file diff --git a/navpatterns/1-patterns/create-urls-to-nav-clients/index.html b/navpatterns/1-patterns/create-urls-to-nav-clients/index.html index 2187b8f1..d297162c 100644 --- a/navpatterns/1-patterns/create-urls-to-nav-clients/index.html +++ b/navpatterns/1-patterns/create-urls-to-nav-clients/index.html @@ -5,16 +5,16 @@ Create URLs to NAV Clients :: AL Guidelines - - - - - - - - - - + + + + + + + + + + @@ -32,9 +32,9 @@ ALGuidelines.Dev - - - + + +
- - - - - - - + + + + + + + \ No newline at end of file diff --git a/navpatterns/1-patterns/creating-custom-charts/index.html b/navpatterns/1-patterns/creating-custom-charts/index.html index b976ac19..de3be3ef 100644 --- a/navpatterns/1-patterns/creating-custom-charts/index.html +++ b/navpatterns/1-patterns/creating-custom-charts/index.html @@ -5,16 +5,16 @@ Creating Custom Charts :: AL Guidelines - - - - - - - - - - + + + + + + + + + + @@ -32,9 +32,9 @@ ALGuidelines.Dev - - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - - - - - + + + + + + + \ No newline at end of file diff --git a/navpatterns/1-patterns/error-message-processing/index.html b/navpatterns/1-patterns/error-message-processing/index.html index bc8734be..7bf07b85 100644 --- a/navpatterns/1-patterns/error-message-processing/index.html +++ b/navpatterns/1-patterns/error-message-processing/index.html @@ -5,16 +5,16 @@ Error Message Processing :: AL Guidelines - - - - - - - - - - + + + + + + + + + + @@ -32,9 +32,9 @@ ALGuidelines.Dev - - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +
- - - + + +