Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if object property exists
Message
 
To
25/10/2008 12:06:01
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01357143
Message ID:
01357194
Views:
15
>Sometimes the property exists, sometimes it doesn't. When it doesn't, one of my conditional statements referencing the property causes an error. How can I add a check so that does not happen?

PEMStatus() can tell you but I think TYPE() may be faster. VarType will error under certain conditiona where TYPE will not error but only return U as undefined type.
Previous
Reply
Map
View

Click here to load this message in the networking platform