Board index » cppbuilder » Getting selected list items
Bhuvan Sharma
![]() CBuilder Developer |
Bhuvan Sharma
![]() CBuilder Developer |
Getting selected list items2004-02-05 08:44:02 PM cppbuilder101 I havea listbox with multiple select turned on. What method would fetch all the selected values from the list box ? Thanks in advance Ronan |
Frank Gruber
![]() CBuilder Developer |
2004-02-06 02:29:07 AM
Re:Getting selected list itemsQuoteI havea listbox with multiple select turned on. What method would fetch if (listbox->Selected[i]) { // this item is selected, so process it here } } HTH. Frank. |
Bhuvan Sharma
![]() CBuilder Developer |
2004-02-06 10:33:54 PM
Re:Getting selected list items
Thanks frank;
However continuing on the same story, Quotefor (i = 0; i < listbox->Items->Count; i++) I have tried something like ListBox1->Items->GetText(); at this step, but it returns all the values in the listbox. But rather I would want only the selected value. thanks in advance, Ronan "Frank Gruber" < XXXX@XXXXX.COM >wrote in message Quote>I havea listbox with multiple select turned on. What method would fetch {smallsort} |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2004-02-07 03:09:26 AM
Re:Getting selected list items
"Bhuvan Sharma" < XXXX@XXXXX.COM >wrote in message
QuoteIn the processing step u mentioned, if I want to retrieve the if( listbox->Selected[i] ) { // use listbox->Items->Strings[i] as needed } Gambit |
Bhuvan Sharma
![]() CBuilder Developer |
2004-02-10 03:48:51 AM
Re:Getting selected list items
Thanks Remy,
It works. "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message Quote
|