Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype: behavior
Message
From
16/09/1998 14:30:07
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00136852
Message ID:
00137404
Views:
30
>It says VARIABLE. What you are looking for is a PROPERTY that belongs to an OBJECT which does not exist.

The object is an application object. So it does exist. The property is and array that does exist and at times has other elements. But if I check for an array element that holds reference to a form that does not exist --- error. It should return 'U'.

I think that what Bruce found makes sense, but does it mean that you are checking for "ActiveForm.Something" where "ActiveForm" is the _screen object or that the form you are type checking isn't the "Active" form? And why isn't it in my helpfile :-(

>Check for the object reference first, then check if its property exists. It may be even more correct to use PEMSTSTAUS for that.

Actually, the type() function works just fine, which is why I thought that vartype() would work.

Note: vartype() works if the form was instantiated.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform