|
-
Feb 2nd, 2000, 05:52 PM
#1
Thread Starter
New Member
How can I get the list items into a label boxes? I have 20 Label boxes (label1(0) Label1(1) etc...) and a list box.
Now I need to get list items into a label box, so that item 1 goes to label1(0), item 2 goes to label1(1) etc...
How can I do this
Thank you!
-
Feb 2nd, 2000, 06:04 PM
#2
New Member
I haven't used label boxes but I have done alot of transfers between list boxes.
You can access the items in your list box in a while loop
should be able to do:
dim count as integer
count = 0
while count < n do
item_val = label1(count)
list1.additem(item_val)
count = count + 1
loop
Hope that helps.
-
Feb 2nd, 2000, 07:44 PM
#3
Addicted Member
this is a little shorter:
For i = 0 To List1.ListCount - 1
Label1(i).Caption = List1.List(i)
Next i
------------------
Razzle
ICQ#: 31429438
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
|