Programming with Reflection

image\rwnprg32.gif StopRecording method


Syntax object.StopRecording Destination, ExistsOption, File



Stops recording activity in Reflection and saves recorded commands to a Reflection Basic (*.rbs) file. This method returns an error if script recording is not active.


Destination Argument type: Enumeration
Specifies the language in which actions are recorded, or whether the recorded script should be discarded. The values are:


 Saves actions as Reflection Basic commands.


 Saves actions as Visual Basic commands.


 Saves actions as C commands.


 Stops recording without saving the recorded actions.

ExistsOption Argument type: Enumeration
Specifies an action to take if the file specified in the file name argument already exists:


 Prompts the user to overwrite the existing file, append new data to the existing file, or terminate the save. An error is returned if the user then clicks Cancel.


 Replaces the existing file.


 Causes StopRecording to return an error.


 Adds the recorded commands to the existing file.

File Argument type: String
The file to which commands are saved.


image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command