SetVar Method

Visual Studio .NET 2003

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

ApplicationObject.SetVar(cVariableName, eValue)

Property Values

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


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.

See Also

DoCmd Method | Eval Method | STORE

Applies To: Application Object | _VFP System Variable