Submodule_MethodsANotation

Type: Submodule Parent Module: ModuleCMethods

This sub-module converts obsolete notation items to equivalent Omnis Studio items.

Functionality

Searches for commands containing one of the following obsolete notation items:

  1. $was_rowobjs
  2. $was_headerobjs
  3. $was_horzheaderobjs
  4. $cformat
  5. $cwind
  6. $head
  7. #TOP
  8. sys(50)

$was_rowobjs

If command is Omnis 7 table field exception notation, this is converted to the equivalent Studio grid notation. e.g.

Calculate #F as $cwind.$objs.flstperson.$tabrobjs(1003,2).$enabled.$assign(kFalse)

is converted to the Studio grid notation:

Calculate #F as $cinst.$objs.flstperson.$objs.1003.[2].$enabled.$assign(kFalse)

and

Calculate #F as $cwind.$objs.flstperson.$tabrobjs(nam(myField),2).$backcolor.$assign(kRed)

is converted to the Studio grid notation:

Calculate #F as $cinst.$objs.flstperson.$objs.myField.[2].$backcolor.$assign(kRed)

Check file fBadControls to determine whether a new name was generated for a field in O7Analyzer and, if so, use the new name.

Note that the [ ] are required for correct operation of the notation.

If the command uses a notational method other than $assign or $remove then an error is logged for manual correction by the user. This is because the Omnis Studio group $objs represents all field objects within all sections of a container field such as a complex grid, whereas Omnis 7 had a separate group (i.e. $tabrobjs, tabhobjs etc.) for each section.

If the command uses the $remove method then the item $was_rowobjs is substituted with $objs which will provide equivalent processing.

$process_was_headerobjs

If the command uses a notational method other than $assign or $remove then an error is logged for manual correction by the user.

Otherwise the item $was_headerobjs is substituted with $objs which will provide equivalent processing.

$process_was_horzheaderobjs

Processing is the same as for $process_was_headerobjs.

$cformat

The text $cformat is replaced with the following depending on the context of the command as follows:

  1. Open window - $cclass
  2. Close window - $cinst
  3. Test for window open - $cclass
  4. Install menu - $cclass
  5. Remove menu - [$cclass().$name]
  6. Install toolbar - T_[$cclass().$name]
  7. Remove toolbar - T_[$cclass().$name]
  8. Calculate - $cclass
  9. Revert class - $cclass
  10. Queue close - $cinst

$cwind

The text $cwind is replaced with $cinst.

$head

#TOP

The text #TOP is replaced with $topwind().$name.

sys(50)

The text sys(50) is replaced with $topwind().$name.

Assumptions

  1. None.

User Setup Required for this Module

  1. None.