Recording Macros
You can record keystroke macros in Visual FoxPro through the Macros dialog box.
To record a macro
- From the Tools menu, choose Macros.
- In the Macros dialog box, choose Record.
- Press the key or type the key combination you want to define.
- Enter a name for the macro or accept the default and then choose OK.
Visual FoxPro begins recording every keystroke.
**Note **Macro names cannot contain spaces.
To stop recording a macro
- From the Tools menu, choose Macros.
- In the Stop Recording Macro dialog box, choose from the following:
- To save the macro as is, choose OK.
- To continue recording, choose Continue.
- To discard the macro, choose Discard.
- To insert a literal keystroke (the literal meaning of a key instead of any meaning currently assigned to it), choose Insert Literal.
- To insert a pause, select Seconds, add the amount of time, and choose Insert Pause.
See Also
Automating Keystroke Tasks with Macros | Macros Dialog Box | ON KEY LABEL Command | SET FUNCTION Command | Stop Recording Macro Dialog Box | Clearing Macro Definitions | Editing Macros | Creating, Saving, and Restoring Macro Sets | Setting a Default Macro Set