Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
[BUG] on AddProperty method!
Message
De
28/04/2003 12:00:25
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
[BUG] on AddProperty method!
Divers
Thread ID:
00782289
Message ID:
00782289
Vues:
64
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform