Article ID: 190789
Article Last Modified on 12/11/1999
x = NewObject("myclass")
?x.NewProp && New Property will be added to class.
?x.NewProp && Note new property value.
x.NewProp="Hello" && Value assigned since property already exists.
?x.newprop
DEFINE Class myclass as Custom
PROCEDURE this_access(tcMember)
IF ! PEMStatus(this,tcMember,5)
this.AddProperty(tcMember)
ENDIF
RETURN this
ENDPROC
ENDDEFINE
x = NewObject('myclass')
?x.BogusProperty
DEFINE class myclass as custom
PROCEDURE this_access(tcMember)
WAIT WINDOW tcMember
RETURN this
ENDPROC
ENDDEFINE
The Access method fires before you receive the invalid property error.
Additional query words: kbVFp600 kbOOP
Keywords: kbprb kbcode KB190789