Partager via


SAVE MACROS Command

Saves a set of keyboard macros to a keyboard macro file or to a memo field.

SAVE MACROS TO FileName | TO MEMO MemoFieldName

Parameters

  • TO FileName
    Specifies the file to which the macros are saved. Keyboard macro file names can contain a maximum of eight characters and must begin with a letter or an underscore; they cannot begin with a number. The subsequent characters can be any combination of letters, numbers, and underscores. The file is assigned an .fky extension. If you assign an extension other than .fky, you must include that extension in RESTORE MACROS.
  • TO MEMO MemoFieldName
    Specifies the memo field to which the macros are saved. The table containing the memo field must be open; however, it does not have to be in the selected work area. To save macros to a table in another work area, include the table's alias when specifying the memo field.

Remarks

When you quit Visual FoxPro, the macros you have created are lost unless you use SAVE MACROS to store them to a keyboard macro file or to a memo field.

Example

The following example saves the current set of macros to a file called Mymacros.fky.

SAVE MACROS TO mymacros

See Also

CLEAR | PLAY MACRO | RESTORE MACROS