SetVar Method

Applies To    See Also

Creates a variable and stores a value to the variable for an instance of the Visual FoxPro application automation server.

Syntax

ApplicationObject.SetVar(cVariableName, eValue)

Settings

cVariableName

Specifies the name of the variable to create.

eValue

Specifies the value stored to the variable. If the variable specified with cVariableName already exists, the new value is store to the variable.

Remarks

While the DoCmd method can be used to set a variable to a character value, the SetVar method should be used to set a variable to other data types.