Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for a property
Message
De
12/07/2006 13:26:34
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
12/07/2006 12:54:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
01135767
Message ID:
01135785
Vues:
17
>How can I test for the existence of an object property? If the property does not exist I would like to add it.

While pemstatus(oObj, cProp, 5) will give you .f. if the property doesn't exist, if you don't care what was the previous value of the property, you can just .addProperty(cProp, uValue) - works for existing properties as well. It's just that any previous value is thus overriden.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform