You are not logged in.

niranjan

Beginner

  • "niranjan" started this thread

Posts: 2

Date of registration: Sep 8th 2010

  • Send private message

1

Thursday, September 23rd 2010, 6:41pm

paramarray

Hi friends!!
The paramarray function when used the following way i'm getting expected: expression near the word paramarray.Can somebody help me.



:( Private Sub Command1_Click()
Call demo()
Call demo(1,2,3)
Call demo(2, 3)
Call demo("nir","anjan")
Call demo(7.5, 8, 9, 10, 11, 12)
End Sub

Private Sub demo(Paramarray a()As Variant)
Dim x%
Label1.Caption= "this time the arguments recieved are"
For x = LBound(a) To UBound(a)
List1.AddItem(a(x))
Next x
End Sub

Rate this thread
WoltLab Burning Board