Syntax



IMACRO


[ NONE ]

| Macro-name ]

[ ON | OFF | ? ] ]



Operands


NONE

Will nullify any existing IMACRO string.



?

Display the current status of the setting.


Macro-name

The Macro command you wish invoked.


If ON or OFF are specified, they indicate:

ON    - The macro is activated and will be used on each file load.

OFF  - The macro name is saved, but is "dormant", it will not be used on file load.


Note: the ON/OFF state can be over-ridden at file open time by adding a /ON or /OFF to the EDIT, BROWSE or VIEW command. In File Manager, the /ON or /OFF can be entered as a line command.




Description


The IMACRO command allows you to specify a Macro which will be run immediately after loading a file.


NONE        If IMACRO is issued with no operands, it will simply display the current IMACRO setting.  Therefore, in order to nullify an existing IMACRO, NONE is used to represent the "" condition.


The effect of IMACRO will only be seen the next time a file using this profile is loaded.


Actions when only some operands are entered


    • When only Macro-name is entered

If no current Macro-name, ON is assumed

If there is a current Macro-name, the existing ON/OFF state is assumed.

    • When only ON/OFF is entered

If no current Macro-name, an error message is displayed

If there is a current Macro-name, it is kept and the new ON/OFF setting saved.

    • When NONE is entered, any other operands are ignored, and any existing Macro-name is nullified.



Created with the Personal Edition of HelpNDoc: Free help authoring tool