Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Basics
Message
From
29/06/2011 18:38:13
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01516758
Message ID:
01516795
Views:
56
>>>>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?

Yes - so I guess that there is not an easy solution.

I will look at your responses tomorrow. Good night and thanks very much.
Previous
Reply
Map
View

Click here to load this message in the networking platform