According to help calling ADDPROPERTY method for a property that exists without second parameter (tha value), the value of the property should be unchanged, but the value, in VFP 8.0, is erased!!
If you try to see the type of erased value in watch window (TYPE and VARTYPE return 'U'), you'll see a 'J' type ... what is J type ???
Thanx in Advance
Demo code:
---------------
o = createobject('custom')
o.addproperty('Value', 'Initial value')
? o.Value
o.addproperty('Value',)
SET STEP ON
&& Opening Watch windows
&& the type of o.value is J ???
? o.Value
---------------
bye, Emanuele!
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded as a bad move.