Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if a form property exists
Message
 
 
To
01/12/2000 14:31:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00443856
Message ID:
00448280
Views:
8
>>I note you said "usually". You do have to be aware of VARTYPE() and objects, that the object better exist or you'll get an "Alias not found error".
>
>Well, hopefully "This" will be available :-) But I understand what you mean. For the record, Type() does not work that way, but it can return 'O' for properties that don't actually hold objects anymore, so when checking for object properties, VarType() is faster and less typing.

The only exception for this that I know of is the Parent property of a form. There was a thread about this in the last week. You have to use TYPE() for this or VFP will throw an error. FWIW, it works if you use the same function in a form control.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform