Links are not active on this page.
 SetVar Method

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

ApplicationObject.SetVar(cVariableName, eValue)

Expand imageReturn Value

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.

Expand imageRemarks

Applies To: Application Object | _VFP System 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.

Expand imageSee Also