diff --git a/content/NAVPatterns/1-patterns/data-migration-facade/index.md b/content/NAVPatterns/1-patterns/data-migration-facade/index.md index cd90d96d..71ae32b4 100644 --- a/content/NAVPatterns/1-patterns/data-migration-facade/index.md +++ b/content/NAVPatterns/1-patterns/data-migration-facade/index.md @@ -191,7 +191,7 @@ var DescriptionToSet: Text[10]; begin // handle the event if it targets this extension's staging table - if RecordIdToMigrate.TableNo <\> Database::"My Item Staging Table" then + if RecordIdToMigrate.TableNo <> Database::"My Item Staging Table" then exit; MyItemStagingTable.Get(RecordIdToMigrate); diff --git a/content/NAVPatterns/1-patterns/easy-update-of-setup-or-supplementary-information/index.md b/content/NAVPatterns/1-patterns/easy-update-of-setup-or-supplementary-information/index.md index d1e704e7..aea9f8d3 100644 --- a/content/NAVPatterns/1-patterns/easy-update-of-setup-or-supplementary-information/index.md +++ b/content/NAVPatterns/1-patterns/easy-update-of-setup-or-supplementary-information/index.md @@ -19,7 +19,7 @@ Define two functions in the setup or supplementary table: One for verifying if t Call the code. For example: ``` Local IsXAvailable : Boolean -If field X <\> '' then +If field X <> '' then Exit(True) Exit(false) @@ -56,10 +56,9 @@ The code in the **Sales & Receivables Setup** table can now be called directly f Were the code is called: -```AL -IF ("EAN No." <\> '') THEN - -SalesSetup.VerifyAndSetOIOUBLPathSetup(SalesHeader."Document Type"); +```al +IF ("EAN No." <> '') THEN + SalesSetup.VerifyAndSetOIOUBLPathSetup(SalesHeader."Document Type"); ``` If the setup is not updated properly, the user is prompted to update it as follows. diff --git a/content/NAVPatterns/1-patterns/feature-localization-for-data-structures/index.md b/content/NAVPatterns/1-patterns/feature-localization-for-data-structures/index.md index 32cdadfa..14ee3b5e 100644 --- a/content/NAVPatterns/1-patterns/feature-localization-for-data-structures/index.md +++ b/content/NAVPatterns/1-patterns/feature-localization-for-data-structures/index.md @@ -154,7 +154,7 @@ REPEAT VendorBillLine.TESTFIELD("Document Type",VendorBillLine."Document Type"::Invoice); -IF ((VendorBillLine."Vendor No." <\> PrevVendorBillLine."Vendor No.") OR (VendorBillLine."Vendor Bank Acc. No." <\> PrevVendorBillLine."Vendor Bank Acc. No.")) THEN BEGIN InsertTempGenJnlLine(TempGenJnlLine,VendorBillHeader,PrevVendorBillLine,CumulativeAmount); +IF ((VendorBillLine."Vendor No." <> PrevVendorBillLine."Vendor No.") OR (VendorBillLine."Vendor Bank Acc. No." <> PrevVendorBillLine."Vendor Bank Acc. No.")) THEN BEGIN InsertTempGenJnlLine(TempGenJnlLine,VendorBillHeader,PrevVendorBillLine,CumulativeAmount); CumulativeAmount := VendorBillLine."Amount to Pay"; diff --git a/content/NAVPatterns/1-patterns/queries/use-queries-to-replace-nested-loops/index.md b/content/NAVPatterns/1-patterns/queries/use-queries-to-replace-nested-loops/index.md index 1964033a..3caea2a9 100644 --- a/content/NAVPatterns/1-patterns/queries/use-queries-to-replace-nested-loops/index.md +++ b/content/NAVPatterns/1-patterns/queries/use-queries-to-replace-nested-loops/index.md @@ -54,7 +54,7 @@ VAR BEGIN BankAccRecLine.SETRANGE("Bank Account No.",BankAccReconciliation."Bank Account No."); BankAccRecLine.SETRANGE("Statement No.",BankAccReconciliation."Statement No."); - BankAccRecLine.SETFILTER(Difference,'<\>%1',0); + BankAccRecLine.SETFILTER(Difference,'<>%1',0); BankAccRecLine.SETRANGE(Type,BankAccRecLine.Type::"Bank Account Ledger Entry"); IF BankAccRecLine.FINDSET THEN @@ -62,7 +62,7 @@ BEGIN BankAccLedgerEntry.SETRANGE("Bank Account No.",BankAccRecLine."Bank Account No."); BankAccLedgerEntry.SETRANGE(Open,TRUE); BankAccLedgerEntry.SETRANGE("Statement Status",BankAccLedgerEntry."Statement Status"::Open); - BankAccLedgerEntry.SETFILTER("Remaining Amount",'<\>%1',0); + BankAccLedgerEntry.SETFILTER("Remaining Amount",'<>%1',0); IF BankAccLedgerEntry.FINDSET THEN REPEAT IF (BankAccRecLine.Difference = BankAccLedgerEntry."Remaining Amount") AND @@ -140,7 +140,7 @@ OBJECT Query 1252 Bank Rec. Match Candidates DataSource=Difference } { 7 ;1 ;DataItem; ; DataItemTable=Table271; - DataItemTableFilter=Remaining Amount=FILTER(<\>0), + DataItemTableFilter=Remaining Amount=FILTER(<>0), Open=CONST(Yes), Statement Status=FILTER(Open); DataItemLink=Bank Account No.=Bank_Acc_Reconciliation_Line."Bank Account o.",