Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype: behavior
Message
From
15/09/1998 14:16:11
 
 
To
15/09/1998 14:07:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00136852
Message ID:
00136861
Views:
31
>Am I missing something here?
>
>Using VFP6.0...
>
>I have a method that instantiates my forms. In this method, I check to see if the form was, indeed, instantiated. If not, I do not increment my forms array.
>
>I was using vartype(myform). If the form was instantiated, vartype() returns 'O', as it should, it errors if the form was not instantiated as opposed to returning 'U'. If I use type(), in this case, I get the expected behavior.
>
>What gives?

You should also check for .NULL.:
if type("this.aformarray[n]")<>"O" and not isnull(this.aformarray[n])
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform