Qualify Fields Refactoring

Generally, using unqualified field names is not viewed as "best practice" for 4gl developers. There are a number of pitfalls in using unqualified field names, one of the most significant is that when moving code around you can accidentally change which buffers are being implicitly used for the unqualified fields. This can lead to bugs that are rather difficult to track down.

ProRefactor has the semantic and contextual knowledge necessary to determine which buffer name is being implicitly used for unqualified field names. This refactoring finds unqualified field names in the current file (must be a compilable file) and adds the appropriate table or buffer names.

Usage

  1. This refactoring operates on the currently selected file or the file that is currently open in an editor. The file must be compilable.
  2. From the main menu, choose ProRefactor > Qualify Field Names. The preview dialog appears, allowing you to accept or reject the changes.

Features

This refactoring recognizes FIELDS, EXCEPT, and USING phrases, and does not qualify field names within those.