|
-
Jan 8th, 2000, 06:41 AM
#1
Thread Starter
Addicted Member
If I store info like:
Hello , My , Name , Is , Smie
That in a database, and bring it back, how would I be able to separate that info, and place each individual word, in a listbox? Thanx
-
Jan 8th, 2000, 07:10 AM
#2
assuming that each word is delimited by a comma you could use Split()
Dim arySingleWordsArray
arySingleWordsArray = Split("Hi,My,Name,Is, Smie",",")
after that line, arySingleWordsArray would contain a zero-based single dimension array of each word separated by a comma.
arySingleWordsArray(0) = "Hi"
arySingleWordsArray(1) = "My"
arySingleWordsArray(2) = "Name"
arySingleWordsArray(3) = "Is"
arySingleWordsArray(4) = "Smie"
...from here you can spin through and add each one to a list box.
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
|