andyhill Posted August 23, 2021 Share Posted August 23, 2021 Has my mind gone blank ? for i:= 0 to lbOrgans.Items.Count-1 do begin if lbOrgans.Items[i].IsSelected = True then begin // FAILS // do something end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 23, 2021 Share Posted August 23, 2021 22 minutes ago, andyhill said: Has my mind gone blank ? for i:= 0 to lbOrgans.Items.Count-1 do begin if lbOrgans.Items[i].IsSelected = True then begin // FAILS // do something end; end; Sorry? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 23, 2021 Share Posted August 23, 2021 1 hour ago, andyhill said: Has my mind gone blank ? for i:= 0 to lbOrgans.Items.Count-1 do begin if lbOrgans.Items[i].IsSelected = True then begin // FAILS // do something end; end; Hello, try this: if lbOrgans.Selected [i] = True then begin end; Quote Link to comment Share on other sites More sharing options...
andyhill Posted August 23, 2021 Author Share Posted August 23, 2021 Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.