Hi ,
i am new to VB programming , can someone tell me how to pass Arrays as parameters.
Thanx
Printable View
Hi ,
i am new to VB programming , can someone tell me how to pass Arrays as parameters.
Thanx
Check this example:
VB Code:
Option Explicit Private Sub Form_Load() Dim arr(7) As String arr(0) = "000" arr(1) = "001" arr(2) = "010" arr(3) = "011" arr(4) = "100" arr(5) = "101" arr(6) = "110" arr(7) = "111" PrintThemAll arr End Sub Private Sub PrintThemAll(arr() As String) Dim i As Integer For i = LBound(arr) To UBound(arr) Debug.Print arr(i) Next i End Sub