Check PowerBuilder - PowerScript Naming Conventions

Verify PowerBuilder Naming Conventions in Visual Expert Treeview

At Application Level

  1. Select a source of code in Visual Expert’s treeview, under the ‘Applications’ node.
  2. Click on ‘Naming Conventions’ in the navigation bar.
    Visual Expert lists the objects that do not follow the predefined naming rules along with a hint on the correction that needs to be made.

    select powerbuilder code to check naming conventions

At Object Level

Naming Conventions can be called at the root of PB items like Windows, Menu, UserObjects, Functions Objects, etc.

  1. Select the root of ‘Windows’ in Visual Expert treeview.
  2. Click on ‘Naming Conventions’ in the navigation bar.
    Visual Expert will list the objects that do not follow the predefined naming rules along with a hint on the correction that needs to be made.

    view naming conventions on PB root items

 

At PBL Level

Naming Conventions for PBLs can be called at the root of PBLs as well as on a single PBL.

On the root of PBLs

check naming conventions on the root of PBLs

On a single PBL

check naming conventions on single PBL

 

At Object Level

Naming Conventions can also be called on a single PB object like a window, a user object, a DataWindow, a menu, or a function.

check naming conventions for PB objects

 

Verify PowerBuilder Naming Conventions in a Code Review Report

You can also check the naming conventions in a Code Review Report generated by Visual Expert. The code review report can be useful to find out which objects in a project are not following the defined naming rules.

check naming conventions in code review report

Please refer to this article to learn how to generate a Code Review Report for PowerBuilder code.

 

Customize your PowerBuilder Naming Conventions

Visual Expert provides a set of default PB naming rules, which can be customized as per your needs.

  • Mouse over the ‘Naming Conventions’ macro and click on the wrench that appears on its right end.
    naming conventions macro for transact sql code

    This opens a configuration window, where the rules can be modified as needed.

    configure naming conventions for powerbuilder code

    You can also configure the naming conventions at the Project Settings level.

  • Open ‘More Settings’ under the ‘Settings’ tab on the top menu.

    Open More Settings Tab for Naming Conventions

  • Select the ‘PowerBuilder’ tab, then click on ‘PB Naming Conventions’.
  • Set the naming conventions as required for the current Visual Expert project. The changes will be automatically saved upon closing this window.

    set naming conventions for PowerBuilder code

 

Visual Expert 2019, PowerBuilder, Naming Conventions