|
-
Dec 1st, 2003, 10:19 AM
#1
Thread Starter
Lively Member
easy listbox stuff
Hi, Does anyone here now how to get the value of the second from last item in a listbox?
Thanks in advance,
John
-
Dec 1st, 2003, 10:30 AM
#2
Addicted Member
Dim text as string
text = listbox1.item(listbox1.items.count-2).text
msgbox(text)
No sure if this is completely right but it should be close
(Dont have VS.Net on this computer)
-
Dec 1st, 2003, 10:44 AM
#3
Thread Starter
Lively Member
nope it doesn work
-
Dec 1st, 2003, 10:47 AM
#4
Hyperactive Member
text = listbox1.item(listbox1.items.count-2)
-
Dec 1st, 2003, 10:51 AM
#5
Addicted Member
Try this:
Dim text as string
Dim i as integer=listbox1.items.count-2
text = listbox1.item(i)
msgbox(text)
I was thinking Listview not Listbox
Damn you be me to it!
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
|