Results 1 to 2 of 2

Thread: arrays

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    19

    arrays

    How do I take data from a list and put it into an array?

  2. #2
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    VB Code:
    1. Dim lstArray() As String
    2. Private Sub Command1_Click()
    3.      ReDim Preserve lstArray(List1.ListCount)
    4.      For X = 0 to List1.ListCount-1
    5.              lstArray(x) = List1.List(x)
    6.      Next
    7. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width