Programming with Reflection

image\rwnprg32.gif AddReference method

 

Syntax object.AddReference FileName [Options]

 

Description

Adds a reference in the current settings file to the specified settings file. After you add a reference, the macros, procedures, and forms in the referenced project are available to the current settings file. When you save a settings file, added references are also saved, so the additional macros are available each time you open your settings file.

This statement adds a reference to the More Macros.r2w settings file:

Session.AddReference "c:\Mypath\More Macros.r2w"

Arguments

FileName Argument type: String
The name of the settings file containing the project you want to reference. You can include complete path information.

Options Omit this argument; it is not currently used.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command