>>>Naomi:
>>>
>>>I opened new folder and started from fresh and the data mismatch problem went away. Thanks.
>>>
>>>the only issue outstanding now is how do I deselect only the checkboxes that are being displayed on the screen. i.e. I somehow need to know which records to go to.
>>>
>>>Yossi
>>
>>The question is still not clear. In the grid you can just click on the checkbox and select-de-select. If you want to unselect all, then
>>
>>replace LogicalField with .f. for LogicalField = .t. in GridCursor
>
>Sorry for not being clear.
>
>1. Say there are 15 records in the underlying cursor. the user is now displaying record 6 - 10. When she clicks on the command button that is caption 'Clear All', I want to run a routine that replaces the logical field ONLY in records 6 -10 with .f.
>
>2. Another problem - In my test form I am displaying records 1 - 5. All the checkboxes are deselected. The pointer is on 1. I click a button that has the following code in the click method:
>
>
>1
>replace f2 WITH .t.
>
>2
>replace f2 WITH .t.
>
>
>Voila! A check appears on the first 2 lines. Good. I then click out of the form and browse the table. The first recoird's logical field is still .f.! Soemhow it didn't 'take'.
>
>Thanks,
>
>Yossi
If you only want to select / deselect 'visible records' (e.g. after the user scrolls the grid), when I don't know of an easy solution.
Otherwise what do you mean by 'User is now displaying record 6-10'? Do you refer to the use scrolling to the record #6 and so only N records are in the visible portion of the grid right now?
If it's not broken, fix it until it is.
My Blog