Aracılığıyla paylaş


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)

Return 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.

Remarks

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.

See Also

Reference

DoCmd Method

Eval Method

STORE Command

Other Resources

Methods (Visual FoxPro)

Language Reference (Visual FoxPro)