Download user manual - Parse-O

Transcript
P A R S E - O - M A T I C
U S E R
M A N U A L
—
T H E
C O N F I G
S E C T I O N
Commands Available in Config
Since the Config section deals with overall processing parameters, you should not use it
to initialize variables — that should be done in the TaskInit step.
In most cases, you will simply assign values to $Cfg variables. In addition to this,
though, you can use the following commands:
Begin, Else, End, If, Otherwise, Stop, NextStep
These let your Config section make certain decisions based on other factors (for
example: whether or not $TestMode = 'Y'). You cannot read input (because there is
none within the Config section), nor can you generate output.
The $Cfg Variables
The settings you make in the Config section are performed by assigning a value to one
of the special variables starting with the characters $Cfg. These are described below.
Optional Input Boxes
The standard Parse-O-Matic interface has three combo boxes known generically as
OptionX, OptionY and OptionZ.
You can alter the characteristics of these input boxes with the following $Cfg variables:
$CfgCaptionX, $CfgCaptionY and $CfgCaptionZ set the caption. You can include an
ampersand in the value to define a hotkey. For example:
$CfgCaptionY = '&PhoneNum'
This will alter the caption for the OptionY input box to ―PhoneNum‖, with a hotkey
of Alt-P. You should test your script to ensure that the hotkey is not already used by
another control, and that the caption fits in the space provided.
$CfgEnableOptionX, $CfgEnableOptionY and $CfgEnableOptionZ turn on or off
the optional input boxes. If an input box is turned off, it will be ―greyed-out‖ and will
contain the string ―(Not used by this application)‖. For example:
$CfgEnableOptionX = 'N'
$CfgEnableOptionY = 'Y'
$CfgEnableOptionZ = 'N'
This would turn off all optional input boxes except OptionY.
$CfgHintX, $CfgHintY and $CfgHintZ provide a ―hover hint‖. This is a short phrase
that appears when the user pauses over the input box with the mouse cursor.
116