Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
how to determine if a var is = nothing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00413285
Message ID:
00413435
Vues:
21
>Mike's correct about IsObject() in VB. However, if the variable has been set equal to Nothing, it will still return True. So, you have to check that condition as well.

Yep, figured that would happen. I think I got it though, with the help of someone in the VB forum.
If Not oTest Is Nothing Then
    MsgBox ("object")
Else
    MsgBox ("nothing")
End If
Seems to be working. Thanks.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform