[AccessD] Array in array

Gustav Brock gustav at cactus.dk
Thu Nov 13 02:54:26 CST 2003


Hi all

No I didn't know this is possible but it is.

ElementK tips:
http://offers.elementkjournals.com/redir3/l7AH_iGAB!http://www.elementkjournals.com/tips.asp

recently wrote about it.

Here's a sample:

<code>

Public Sub ArrayInArray()
  
  Dim asSub(1)  As String
  Dim avMain(1) As Variant
  
  asSub(0) = "Database"
  asSub(1) = "Access"
  avMain(0) = asSub
  asSub(0) = "Advisors"
  asSub(1) = "Developers"
  avMain(1) = asSub
  
  MsgBox avMain(0)(0) & " " & avMain(1)(0), , "ArrayInArray 0"
  MsgBox avMain(0)(1) & " " & avMain(1)(1), , "ArrayInArray 1"

End Sub

</code>

/gustav



More information about the AccessD mailing list