Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting if a parameter has been passed
Message
De
10/12/1997 11:56:50
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, États-Unis
 
 
À
10/12/1997 11:54:34
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00065022
Message ID:
00065029
Vues:
55
>>>Sub Cleanup(Optional tnError As Integer)
>>>
>>>' If we pass a parameter
>>>If VarType(tnError) = 2 Then
>>> lnLastError = tnError
>>>End If
>>>
With that specific code, tnError will be 0 if nothing is passed. If 0 means something else, then you will have to use IsMissing, otherwise, you could just check for 0.
Jay Shepherd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform