Results 1 to 7 of 7

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

Hybrid View

  1. #1
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Trapping of arrays - HELP ME!!!!

    strData() cannot be used without a Redim as mentioned in post#2.
    However, you don't need strData() to add those captions into Listbox.
    Code:
    Option Explicit
    
    Private Sub Command1_Click()
        Dim IntCounter     As Integer
                    
        For IntCounter = 0 To 4
          If txtDana(IntCounter).Text <> "" Then
            List1.AddItem lblZwierzaki(IntCounter).Caption
          End If                               
        Next
          
    End Sub
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  2. #2

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

    Re: Trapping of arrays - HELP ME!!!!

    Hi

    anhn thank you, sorry, I knew about this. I need some way to trap the array because in my project I have to write in proper column these data in my ListBox (I use Send Message function to create these columns) The division of data on a columns, way to displays this, it all forces such solution (trapping arrays). This code will be as example only my prob.
    Therefore I ask about some an example of code, showing how to trap this array?

    Please help me, thanks in advance
    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