Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
how to determine if a var is = nothing
Message
From
06/09/2000 22:22:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00413285
Message ID:
00413290
Views:
21
>I have a var that will either be an ObjectReference or Nothing and I need to determine that with if.
>
>I tried: "if MyVar is Object", but I get an error.
>
>tia

Try VARTYPE(myvar) -- if it returns "O" it's an object, if it returns "X", it's NULL
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform