PDA

Click to See Complete Forum and Search --> : ListBoxes


gravyboy
Jan 12th, 2000, 11:09 AM
In code how can I goto the last line of a listbox?


------------------
Matt G
Either mattg@gravyboy.fsnet.co.uk] or matt.graveston@centrica.co.uk

Jan 12th, 2000, 11:24 AM
I i am right, you can do like this.

List1.List(List1.ListCount - 1)

now you have the last item from the listbox.

and if you want to read every items from the listbox you can do like this

dim i as integer

for i = 0 to list1.listcount - 1
list2.additem list1.list(i)
next