-
Mar 31st, 2014, 01:07 AM
#1
Thread Starter
PowerPoster
[RESOLVED] IS there a more efficient way to copy from a list to a text box array
Hi there! I am working on a listbox that is called StudentList. It has a list of student names, and I recently reordered their names in alphabetical order, and now would like to copy them one by one to a text box array. There are 31 in the array from 0-30, and the text box is called StudentNameTXT.text
Is there a more efficient way to copy them over than me going something like.
StudentNameTXT(0).text = Studentlist.listindex (0)
StudentNameTXT(1).text = Studentlist.listindex(1)
StudentNameTXT(2).text = Studentlist.listindex(2)
... etc?
Thank you!!
-
Mar 31st, 2014, 01:17 AM
#2
Re: IS there a more efficient way to copy from a list to a text box array
From a typing standpoint yes, you could use a loop
Code:
For x=0 to 30
StudentNameTXT(x).text = Studentlist.list(x)
Next
-
Mar 31st, 2014, 01:31 AM
#3
Thread Starter
PowerPoster
Re: IS there a more efficient way to copy from a list to a text box array
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
|