How do i get the value of a TListBox? I have tried mybox.text, mybox.value etc but i cant find it![]()
How do i get the value of a TListBox? I have tried mybox.text, mybox.value etc but i cant find it![]()
i think from memory its ListBox1.Items
Ah ok thanks lol I will try it
Edit: Listbox.items has all of the items in tstrings, how do i get the selected item?
ListBox.Selected[]
Edit:
To get the selected item you would have to do some crazy crap like:
SCAR Code:for I:= 0 to ListBox.Items.Count - 1 do
if(ListBox.Selected[I])then
begin
Writeln('Item ' + IntToStr(I) + ' is selected...');
Break;
end;
There are currently 1 users browsing this thread. (0 members and 1 guests)