Programming with Reflection
ExportMacroFile
method
Syntax object.ExportMacroFile MacroName, [DirName], [Options]
Exports the specified macro to a macro file. Reflection adds an *.rma extension to the exported file.
For example, the following statement creates a macro file called login.rma in the specified folder location. overwriting the file if it already exists:
Session.ExportMacroFile "login", "C:\Macro Files", rcOverwrite
MacroName Argument type: String
Specifies a macro in the current Reflection settings file.
DirName Argument Type: String
Optional
Specifies a folder location for the exported file. If the specified folder
doesn't exist, it is created. If this argument is omitted, a Browse for
Folder dialog box is displayed.
Options Argument Type: Enumeration
Optional
Specifies what to do if the file exists. The possible values are:
rcCancel (Default) Generates an error if the file already exists.
rcAskUser Prompts the user to either cancel or overwrite the file.
rcOverwrite Overwrites the existing file.
rcRename Renames the existing file with a new, unique file name and saves the file using the specified MacroName.