Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if a Property Exists
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00534933
Message ID:
00535150
Views:
11
>>PemStatus() or Type()... Is there advantage of using one over the other?
>If you're simply trying to determine whether or not the property exists, TYPE() takes less code.

Here's something obscure, be careful with type() because you'll fire Access methods of the property you want. That may be something you want, or not. That also includes this_access, I've used parameters objects that will automatically create properties you ask for on the object, and using Type() returned something I didn't want.

If you just wanna know if the prop is there, PEMStatus() is the safest way to go.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform