| |
ehvbs
Posts: 2196
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
|
Hi HanSolo, No; the parameters to a VBScript Sub or Function are determined by its declaration - no ParamArray as in VB(A). You may pass an array/a dictionary to a Sub or Function and treat this as a kind of do it yourself variable argument list: doIt Array( "1", "a" ) doIt Array() doIt Array( "whatever", 2, 3 , 4 ) Sub doIt( aParms ) ... Select UBound( aParms ) Case -1 .... Case 2 .... Case 3 .... Case Else .... End Select ... End Sub Good luck! ehvbs
|
|