Submodule_Methods_HideToNot

Type: Submodule Parent Module: ModuleCMethods

This submodule converts Hide, Show, Enable and Disable field commands to notational equivalent. The reason for doing this is that OMNIS Studio will generate a run time error when a Hide, Show, Enable and Disable field command specifies an object name that does not exist on the top open window instance whereas OMNIS 7 did not. Conversely the notational equivalent generated by this module will simply ignore any objects that do not exist.

Functionality

Searches all methods for commands containing:

  1. Show fields.
  2. Hide fields.
  3. Enable fields.
  4. Disable fields.

For each such reference located:

  1. Change the command to a notational equivalent.
  2. If a comma separated list of fields are affected by the original command then a new notational command is generated for each field.

For example. "Enable field {myObjectName}"

Is converted to "Do $topwind.$objs.myObjectName.$enabled.$assign(kTrue)"

Assumptions

  1. None.

User Setup Required for this Module

  1. None.