Show Contents / Index / Search

Editing Legacy Reflection Macros

You can edit legacy Reflection macros in the Visual Basic Editor. However, some Session methods and properties are no longer supported. See Unsupported Session Class Methods and Properties.

For each legacy document, Reflection 2008 creates an additional VBA project for the supported legacy API. This legacy API VBA project includes a ThisSession object, which provides backward compatibility for legacy macros. (You can view the legacy API VBA project in the Project Explorer window of the Visual Basic Editor.) To determine which legacy API is supported, see the Legacy API Preference in the API Macro and Security settings.

Editing Reflection Basic Macros

In Reflection 2008, you can edit Reflection Basic scripts using the Reflection Basic Editor. However, you cannot add new scripts to these files.

To edit Reflection Basic scripts

  1. Open the Reflection Basic Editor. (To start the Reflection Basic Editor, you must associate the Run Reflection Basic Editor action with a custom control, such as a button or a keyboard shortcut.)
  2. Open the Reflection Basic script that you want to edit.
  3. Use Application for the Reflection object name.
  4. (Optional) To access information or procedures in other Reflection Basic scripts, use the $Include metacommand, the Declare statement, or the RunScript method.

For more information, see the topic "Add a Button to Run a Macro" in the Reflection 2008 Help.