Condividi tramite


Recording Macros

You can record keystroke macros in Visual FoxPro through the Macros dialog box.

To record a macro

  1. From the Tools menu, choose Macros.
  2. In the Macros dialog box, choose Record.
  3. Press the key or type the key combination you want to define.
  4. 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

  1. From the Tools menu, choose Macros.
  2. 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