Syntax


EDIT

[ file-name ]


[ .Profile-name ]


[ %imacro-name | %ON | %OFF | %NONE ]


[ /XForm-macro | /ON | /OFF | /NONE ]

       

Operands


file-name

The name of the file to be editedEdit. 


The filename may contain system variables ( %xxx% ) if desired, they will be substituted from the System variable settings. 


If the file does not exist, it will be created as an Empty file. If the file is not really desired, issue a CANCEL DELETE command to exit and delete the empty file.


.Profile-name

This optional operand allows you to specify an overriding Profile to be used for the Edit session. It simply consists of the name of the desired Profile, preceded by a . (period)


%imacro-name

This optional operand allows you to specify an IMACRO (a macro to be run immediately after the file is loaded). If an IMACRO is specified in the file's Profile, this imacro-name will override it.


You can use /OFF or /NONE to nullify an IMACRO specified in the Profile


You can use /ON to activate an IMACRO in the profile which is save in OFF mode.


See Profile IMACRO for details.


/XForm-macro

This optional operand allows you to specify an XFORM (a macro to allow access to non-standard file types). If an XFORM macro is specified in the file's Profile, this XForm-macro will override it.


You can use /OFF or /NONE to nullify an XFORM macro specified in the Profile


You can use /ON to activate an XFORM macro in the profile which is saved in OFF mode.


See Profile XFORM for details.

Description


The EDIT command loads a file into the edit work space for editing. If no file-name operand is specified, then a standard Windows file open dialog will be presented for you to select the file for editing. 


If you are currently editing a file in the Tab, the requested file (or NEW) will be opened in a new Tab.


Default Directory


When no operand at all or only a simple unqualified filename is provided for the EDIT command, the default directory used for searching for the file or for the file open dialog's starting directory will be determined as follows:


    • If there is an active file being edited in the tab where the command is issued, then the Path for that active file is used as the default for the command.


    • If there is no active file (when the tab header displays (New) ), the current displayed directory of File Manager will be used. 


Overriding Profile


When you wish to use a different Profile from the one indicated by the file's extension, simply  provide the alternate profile name, preceded by a period, on the command line. For example to Edit  MYSOURCE.BAS using the TXT profile the command would be


EDIT MYSOURCE.BAS .TXT


The use of the alternate profile is for the duration of this session only, it does not alter any permanent Profile processing.

Created with the Personal Edition of HelpNDoc: Experience the power of a responsive website for your documentation