Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many parameters do i have
Message
From
02/11/1998 12:20:03
 
 
To
01/11/1998 14:16:37
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, United States
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00153008
Message ID:
00153617
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform