|
-
Oct 15th, 2003, 08:45 PM
#1
Thread Starter
Addicted Member
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?
-
Oct 15th, 2003, 11:06 PM
#2
Thread Starter
Addicted Member
All i need to know now is how to get the first item un the list box into a variable
-
Oct 16th, 2003, 01:44 AM
#3
like this you mean? ...
VB Code:
[COLOR=blue]Dim[/COLOR] s [COLOR=blue]As String[/COLOR]
[COLOR=blue]For Each[/color] s [COLOR=blue]In[/color] ListBox1.Items
ListBox2.Items.[COLOR=black]Add[/color](s.[COLOR=black]Split[/color](" "c)(0))
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|