Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter and WHERE
Message
 
 
To
05/06/2008 19:25:25
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01294821
Message ID:
01322010
Views:
19
>>>That may be a problem. The search form I am using has a grid on it. Calling the CursorFill() method does funky things to grids when you change requery the cursor adapter. I need to use CursorRefresh() to make the grid behave properly. So, maybe this solution may not work to solve my problem?
>>>
>>>Scott
>>
>>Don't bind your grid to the CA directly. Use a separate cursor for the grid with safe select approach.
>>
>>I need to post my Search class here based on CA.
>
>Naomi,
>
>I have a separate cursor adapter class just for the grid. Actually it's part of a business object that is based on the dataenvironment class. For the search form it has two cursor adapters, one for a drop down object that needs to populated during the form init and then the grid cursor adapter which gets populated when the user fills out the form and clicks on the Search button.
>
>I must confess that I do not know what you mean by the safe select approach. What is that?
>
>Scott

Here is Safe Select method described in details

http://weblogs.foxite.com/andykramek/archive/2005/03/19/174.aspx

I hope I would not get punished for quoting a different website <g>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform