ADDPROPERTY( ) Function

Adds a new property to an object at run time.

You can use ADDPROPERTY( ) to add properties and their values to valid Visual FoxPro objects, including those created from Visual FoxPro classes, COM classes, and the SCATTER...NAME command.

ADDPROPERTY(oObjectName, cPropertyName, [, eNewValue ])

Parameters

oObjectName

Specifies the name of the object to which the property is added.

If oObjectName is not a valid object, Visual FoxPro generates the appropriate message.

cPropertyName

Specifies the name of the new property to add to the object.

If the property with the name you specify does not exist, the property is created and added.

eNewValue

Specifies the value to set for the new property.

If you omit eNewValue, and the property exists, Visual FoxPro leaves the value of the property unchanged. If you omit eNewValue, and the property is new, Visual FoxPro sets the value of the new property to False (.F.).

Expand imageReturn Value

Expand imageRemarks

Expand imageExamples

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic