<ACTIVEFN> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
<ACTIVEFN>
Syntax
<ACTIVEFN [function] >
where:
function script command
Description
<ACTIVEFN> forces the evaluation of any active functions and directives
in a command line.
Example
&SAVE pr <TIME>
&PRINT <VAR pr>
This saves the time at which the &SAVE command is executed in the
variable pr and then prints it out.
&SAVE pr <TIME>
&PRINT <ACTIVEFN <VAR pr>>
This saves the active function <TIME> in the variable pr. When the
&PRINT command is executed, <ACTIVEFN> forces any active functions stored
in pr to be evaluated. This means that the time at which the &PRINT
command is executed is printed.
The following example script is useful because it allows you to try out
the syntax of a script command and make sure it works the way you expect
before you include it in your script.
&ERRABORT 0
&<ACTIVEFN <PROMPT "Directive &" "exit">>
&BACK 1
The user is prompted with Directive &, and can then type in the directive
they want to try out. The result is then displayed on the screen.
MPE/iX 5.0 Documentation