Mega Code Archive

 
Categories / Delphi / VCL
 

Reading from listboxes

Title: Reading from listboxes Question: How can I read the text in a listbox item? Answer: Beginners often wonder how to read the text from inside a listbox. The help that comes with Delphi does not tell you this simply. Here is the easiest way to get the text: Showmessage(Listbox1.Items[Listbox1.ItemIndex]);