Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
[BUG] on AddProperty method!
Message
From
28/04/2003 12:00:25
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italy
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
[BUG] on AddProperty method!
Miscellaneous
Thread ID:
00782289
Message ID:
00782289
Views:
63
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.
Next
Reply
Map
View

Click here to load this message in the networking platform