Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test for a property
Message
From
12/07/2006 13:26:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
12/07/2006 12:54:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01135767
Message ID:
01135785
Views:
16
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform