How do i find out the value of an item in a list box if i know the index of it (i'll store the index as listboxindex (an integer))?
msgbox List1.List(2)
Tips, Examples & Tutorials: A valuable forum tool • Generate unique TreeView keys • TreeView with "open" and "closed folder" icons • Time code using GetTickCount • How to trap the Tab key • Scroll a form • NumberBox ActiveX control • Color a ListView row • An InputBox form • How to use SaveSetting and GetSetting • A program registration scheme • Spellcheck a Textbox • Resize controls • Open Windows Explorer at Last Visited Path • A Blackjack Game • Count lines of code • Private Message Viewer • Copy/Paste VB Code • Paste VB Code Add-In • Insert Procedure Names Add-In • A calculator for the game of Spider • My review of REALbasic 2008 • VB6 Debug Tutorial • Picture/Video Viewer • VBF Photo Contest Winners 2009 - 2016
for example VB Code: Private Sub Command1_Click() Msgbox "The value of item 3 is: " & List1.List(3) End sub is that what you mean?
Private Sub Command1_Click() Msgbox "The value of item 3 is: " & List1.List(3) End sub
Chris
Oh, and yes, it's an Integer.
Forum Rules