Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if object reference is Nothing
Message
De
13/04/2001 10:13:47
 
 
À
13/04/2001 09:39:03
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00495258
Message ID:
00495271
Vues:
14
>I tried to do the following where oRef is an object reference Dim'd elsewhere :
>
>If oRef = Nothing Then
>    Set oRef = New Object
>End If
>
>
>But it gives me an error. What is there correct way to see if an object reference is a valid object or has not been assigned/created yet? Thanks,

If oRef Is Nothing Then
.. etc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform