Results 1 to 7 of 7

Thread: [RESOLVED] Trapping of arrays - HELP ME!!!!

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    Resolved [RESOLVED] Trapping of arrays - HELP ME!!!!

    Hi All
    Here is my prob
    I want to trap the array of data - it's condition. Then I want add it to List1.
    However I get an error. >> Subscript out of range <<. What it's wrong?

    my code:
    Code:
    Option Explicit
    
    Private Sub Command1_Click()
    Dim IntCounter     As Integer
    Dim strData()     As String
                    
        For IntCounter = 0 To 4
          If txtDana(IntCounter).Text <> "" Then
             strData(IntCounter) = lblZwierzaki(IntCounter).Caption  ' <<< here I get this error
            List1.AddItem strData(IntCounter)  ' it was: List1.AddItem Sztuki(IntCounter)
          End If                               ' I correct already this now
        Next
         
          
    End Sub
    thanks in advance
    Last edited by Tamgovb; Mar 24th, 2009 at 04:02 PM.
    I know, I know, my English is bad, sorry .....

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