Type: | Submodule | Parent Module: | ModuleCMethods |
This sub-module converts obsolete notation items to equivalent Omnis Studio items.
Searches for commands containing one of the following obsolete notation items:
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.
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.
Processing is the same as for $process_was_headerobjs.
The text $cformat is replaced with the following depending on the context of the command as follows:
The text $cwind is replaced with $cinst.
The text #TOP is replaced with $topwind().$name.
The text sys(50) is replaced with $topwind().$name.