Compartir a través de


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)

Property Values

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

See Also

DoCmd Method | Eval Method | STORE

Applies To: Application Object | _VFP System Variable