Module_OnlyFormatVarDefs

Type: Module Parent Module: N/A

In some Omnis 7 applications each format has a special procedure that is used to declare Format variables, does not contain any other code and is not normally called by other procedures. The O7Analyzer indentifies such procedures and sets a flag for each in the fProcs file. After processing by the core converter the Format variable commands are removed resulting in empty and redundant methods. This module reads all records in fProcs file and removes these methods.

Functionality

Process all records in the fProcs file generated by the O7Analyzer where the fProcs.Proc_OnlyFormatVarDefs flag is equal to kTrue. These are procedures that were identified by the O7Analyzer as only containing format variable declarations. For each such record:

  1. If the procedure number is zero then ignore because we don't wan't to delete $construct methods.
  2. Otherwise if the method is empty (i.e. $methodtext contains less than 2 characters) then remove the method.

Assumptions

  1. This processing assumes that the method is not being called from elsewhere. If this assumption is incorrect then a runtime error will occur when an attempt is made to call the deleted method.

User Setup Required for this Module

None.