Jeff,
You've heard enough about NOT using a listbox < smile >, but can you bypass the selection procedure? If your user wants to select all the items, then presumably he wants to DO something with them. Can the Select All button simply call that processing code for each item in the list box?
HTH
Barbara
>i have 12,000 records in a list box and i want to select/deselect it all. my code goes like this:
>
>(IN COMMAND BUTTON - Click Event)
>
>Thisform.LockScreen = .T.
>FOR nloop = 1 TO Thisform.List1.ListCount
> Thisform.List1.Selected(nloop) = ! Thisform.List1.Selected(nloop)
>ENDFOR
>Thisform.LockScreen = .F.
>
>this works very slow, is there any solution?
>Thanks in advance...