Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help!! ListBox Frustration

Status
Not open for further replies.

ShawnCoutts

Programmer
Jul 4, 2006
74
CA
This is probably something incredibly simple, but I am having some major problems trying to extract the selected string out of a TListBox. Can someone help me?
 
Try something like this:
Code:
Edit1->Text = ListBox1->Items->Strings[ListBox1->ItemIndex];

Hope that helps.
 
thanks a lot. Yesterday must have been a long day if i missed something so simple :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top