Variable Already Scoped

Do not use scope ‘’.’’ qualifier unnecessarily when a variable is already implicitly or explicitly scoped. It keeps the code simpler.

Bad code

ReturnRcptHeader.SETRANGE(ReturnRcptHeader."Return Order No.","Document No.");  

Good code

ReturnRcptHeader.SETRANGE("Return Order No.","Document No.");  

Bad code

WITH ChangeLogSetupTable DO BEGIN
    ...
    IF ChangeLogSetupTable.DELETE THEN
        ...
END;

Good code

WITH ChangeLogSetupTable DO BEGIN
    ...
    IF DELETE THEN
        ...
END;

Last modified January 20, 2026: Merge pull request #283 from microsoft/agentic-assistance-hub (76159eb) by Jeremy Vyska