|Command||basic.$options Statement/BASIC Program
Applicable release versions: AP 6.2
|Category||BASIC Program (486)|
|Description||sets compatibility options for the BASIC compiler.
By default, the compiler generates code compatible with the classic Advanced Pick product. The "$options" statement allows the use of new statements and functions as well as closer functional compatibility with other flavors of Pick. The following "tag"'s are currently available:
AP Advanced Pick - This is the default setting and provides code compatible with previous releases (provided new features are not used).
DEFAULT Default - This is the same as EXT and should be used as the new development default setting.
EXT Extended - This tag provides as many statements and functions as are available and should be used for all new development. Note that because many new functions are allowed, that array references in existing code may need to be changed to some other name for proper compilation.
GA General Automation - This is similar to the EXT option, but provides tighter GA compatibility with regards to the locate and match statements. It is suggested not to use this mode for new development as this setting will disallow any functions not provided by General Automation Pick.
IN2 IN2 - Currently the same as "EXT". Further compatibility changes may be made in the future to bring this setting closer to IN2 compatibility. Never use this setting for new development.
INFORMATION Prime Information - Currently the same as "EXT". Further compatibility changes may be made in the future to bring this setting closer to Prime Information compatibility. Never use this setting for new development.
PICK Pick System's R83 - Same as R83.
R83 Pick System's R83 - Currently the same as AP. Future development may make minor changes to allow slightly better run-time R83 compatibility. Never use this option for new development.
REALITY Reality - Currently the same as "EXT". Further compatibility changes may be made in the future to bring this setting closer to Reality compatibility. Never use this setting for new development.
It is suggested to use the "$options" statement at the top of the desired modules. Note that the default setting is "AP", but this can be changed by setting the shell variable "@SYS.COMPILER" to one of the above tags.
It is illegal to use the "$options" statement multiple times within the same source item.
$options ext x="abc" print ereplace(x,"a","b") "bbc"