Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many parameters do i have
Message
De
02/11/1998 12:20:03
 
 
À
01/11/1998 14:16:37
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00153008
Message ID:
00153617
Vues:
21
Why did n't you use ParamArray?, Look for it (help online)
With this option a function can have a variable number of parameters
example :
This function returns a result with variant type
'------------
Function Test(ParamArray t())
On Error Resume Next
i = 0
While Not (t(i) = Empty)
MsgBox t(i)
i = i + 1
Wend
End Function
'------------
Private Sub Command1_Click()
Result = Test("a", "b")
End Sub
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform