Wayne Smith
2008-07-28 14:04:19 UTC
I have allowed MultiSelect on a ListBox. However, I am not able to read all
of the items selected from the ListBox. My code only gives me the last one
selected. Any input would be greatly appreciated.
AnsiString temp = " ''";
for(int x = 0; x <= lbBdx->Items->Count; x++)
{
if(lbBdx->ItemIndex == x)
temp = temp + ", '" + lbBdx->Items->Strings[lbBdx->ItemIndex] + "'";
}
Thank you in advance!!!!!
Wayne
of the items selected from the ListBox. My code only gives me the last one
selected. Any input would be greatly appreciated.
AnsiString temp = " ''";
for(int x = 0; x <= lbBdx->Items->Count; x++)
{
if(lbBdx->ItemIndex == x)
temp = temp + ", '" + lbBdx->Items->Strings[lbBdx->ItemIndex] + "'";
}
Thank you in advance!!!!!
Wayne