Splitting a Stack, Inserting into a ListView
Posted on 2003-03-04
High points b/c I need it answered quickly and throughly.
I have a variable called listStackUser
listStackUser looks a lil like this
Username = the persons alias
the number = the image on the imagelist ot put next to their name
I need for the code to do this..
split it using |
with leftover username,0
and then split it again so its
username (variable = username)
0 (variable = adminnumber)
and then add that to the userlist like this
lstUsersClient.ListItems.Add , , username, , adminnumber
And loop it or whateve ryou have to do, so it adds all the users from the stack to the lstUsersClients.
Now, the only thing is that I want them sorted alphabetically, in this order, dev, admin, peon
Dev's admin number is 0
Admins is 1
Peons is 2
Hopefully you understand what I need.