Pre-Conversion Tasks

The O7Analyzer performs the following pre-conversion tasks:

Check for Bad Format Names

Check for format names containing: trailing spaces, periods, slashes and other bad characters. If format name is bad, generate a new name by stripping trailing spaces and/or converting periods and slashes to underscores.

Save the old and new names to the datafile table "fBadFormats" containing:

  1. Old format name
  2. New format name

Save Lost Properties

Save the values of any format properties that are lost during the core conversion process

Save the identity and value of the property to the datafile table "fLostProperties" containing:

  1. Format name
  2. Full notation path to format
  3. Name of property (e.g. "$external")
  4. Value of property

Check for Bad Field Names

Check for window field names containing: periods, slashes and other bad characters. (These are treated as bad format names above.)

Save the old and new names to the datafile table "fBadControls" containing:

  1. Format name
  2. Field number (tab order)
  3. Old field name
  4. New field name
  5. Field ident
  6. Data name of variable used by the field

Check for Bad Procedure Names

Identify and fix duplicate procedure names. Identify and fix unnamed procedures. Check for procedure names containing: trailing spaces, periods, slashes and other bad characters. If a menu line shortcut key is prefixed by 1 or 2 spaces then remove them. (These are treated as bad format names above.) Duplicate procedures in a format are made unique by appending _1, _2 etc. to the name of the duplicate procedure.

Save the old and new names to the datafile table "fBadProcs" containing:

  1. Format name
  2. Procedure number
  3. Old procedure name
  4. New procedure name (this is different to old name if bad characters have been fixed)

Save Procedures

For each format, save the following information about all procedures to the datafile table "fProcs":

  1. Format name
  2. Procedure number
  3. Procedure name
  4. Procedure text * See note below
  5. Proc_OnlyFormatVarDefs (set to kTrue if the procedure contains nothing other than Format variable commands)

* Note that since the procedure text is not currently used by any Post-conversion task, the saving of it is currently disabled to reduce the size of the output datafile.

Uninitialized parameters

Find optional parameters without default values.

For each one, create entries in datafile table "fUninitedParms" containing:

  1. Format name
  2. Procedure number
  3. Procedure name
  4. Parameter name
  5. Parameter number

Variable Initial Values

When you read the $objinitval property of variables that contains the name of another variable this is normally returned as #???. This will attempt to obtain the real contents of the initial value by extracting it from the procedure code rather than the notational definition of the variable.

This will only be done for local and parameter variables. For each such variable found, create entries in datafile table "fInitVals" containing:

  1. Format name
  2. Procedure number
  3. Procedure name
  4. Variable name
  5. Variable type ('param' or 'local')
  6. Parameter number
  7. Initial value calculation from procedure text

Called Event Handlers

Check all procedures to determine if they call any field event handler procedures on windows in this or another library.

For each such call found, create entries in datafile table "fCalledEventHandlers" containing:

  1. Calling Format name
  2. Calling Procedure number
  3. Calling Procedure name
  4. Called Library name
  5. Called Format name
  6. Called Procedure number
  7. Called Procedure name
  8. Complete call command

See also Post Conversion Tasks.