PDA

View Full Version : Visual Basic - Lists


Ridicule
03-06-2005, 01:53 AM
I'm currently writing a program that will go to websites on a list. Unfortunatly I'm unsure of how to get the top item off of a list.

Could someone please share with me the property/method/function to do this?

Thanks in advance,
Ryan.

oracleguy
03-07-2005, 12:04 AM
Are you talking about using the listbox control?

If so, you can access the list using the "List" property, and to get the top item, you can specify it's index.

e.g.
MsgBox List1.List(0)