AddProperty
This method lets you add properties to objects both at design-time and at runtime.
Usage |
oObject.AddProperty( cNewProp [, eInitialValue ] ) |
Example |
* Assume you have an abstract Record class. * At runtime, add properties to represent the fields. * Assumes table is open in current work area. oData = CreateObject("Record") FOR nFld = 1 TO FCOUNT() oData.AddProperty(FIELD(nFld)) ENDFOR |
See Also |
Access, Assign, ReadExpression, ReadMethod, WriteExpression, WriteMethod |