Results 1 to 3 of 3

Thread: List box Help

  1. #1

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219

    List box Help

    I have a listbox with names in it. I need to take the first name of the list and out it into a variable (trade) so i can remove it from the first list box, do something with the variable then add that name to another list box. then looping it to do it over and over again until there are no names left in the first list. HOw should i got about doing this?
    -Rob

  2. #2

    Thread Starter
    Addicted Member VBGangsta's Avatar
    Join Date
    Aug 2003
    Location
    New York
    Posts
    219
    All i need to know now is how to get the first item un the list box into a variable
    -Rob

  3. #3
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    like this you mean? ...
    VB Code:
    1. [COLOR=blue]Dim[/COLOR]  s [COLOR=blue]As String[/COLOR]
    2.         [COLOR=blue]For Each[/color] s [COLOR=blue]In[/color] ListBox1.Items
    3.             ListBox2.Items.[COLOR=black]Add[/color](s.[COLOR=black]Split[/color](" "c)(0))
    4.         [COLOR=blue]Next[/color]
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

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