Typing the Macro on the Command Line
With this method, you type DEFINE followed by the name of the macro. For example, if your macro is called Slot_mac, then type:
DEFINE Slot_mac
The system responds with the prompt:
Enter macro definition
Now type in the remaining lines of your macro, one at a time. Each time you press [Enter], the system responds with the prompt:
Enter macro definition
You can now run the macro by typing the name of the macro on the command line. Note that with this method you do not have to use INPUT.
When a macro is in RAM, you can edit the macro by typing EDIT_MACRO on the command line, followed by the name of the macro. For example, you can type:
EDIT_MACRO Slot_mac
The macro will appear in the editor, and it can be edited as if you had used the EDIT_FILE command. To leave the editor, press [Ctrl] [D]. To run the macro, type the macro name on the command line. You do not have to use the INPUT command.
Note that if you enter the editor using EDIT_MACRO, the macro is not saved by pressing [Ctrl] [D]. To save the macro, type SAVE_MACRO on the command line, followed by the name of the macro.
The system responds with the prompt:
Enter SCREEN, DEL_OLD, APPEND or 'file name'
Type SCREEN if you want to view the macro in the editor. Type DEL_OLD to overwrite an existing file of the same name. Type APPEND to add the macro to the end of an existing file. For a new file, type the 'file name'.
¿Fue esto útil?