RGMRecipeGroup.AddVariable



AddVariable(lpVariable As LPDISPATCH) As Boolean

Parameters

lpVariable As LPDISPATCH
"Variable" object that should be passed.
ED
avaliable
RT
avaliable

Remarks

Adds a "Variable" object to the collection.

Sample


Sub AddRemoveVariable(ByRef zRGMGroup As RGMRecipeGroup)
	'Declarations
	Dim zVariable As Variable

	'Initialization of zVariable with the first element of collection within the "Variables" object
	Set zVariable = MyWorkspace.ActiveDocument.Variables.Item(0)

	'Add the variable to the recipe group
	zRGMGroup.AddVariable zVariable

	'Remove the variable from the recipe group by its name
	zRGMGroup.DeleteVariable (zVariable.Name)

End Sub







See Also

RGMRecipeGroup