Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter and WHERE
Message
 
To
05/06/2008 13:38:56
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01294821
Message ID:
01321921
Views:
24
>>>>>Borislav,
>>>>>
>>>>>Thanks for your input.
>>>>>
>>>>>I am assuming that I can accomplish that in the BeforeCursorFill method?
>>>>>
>>>>>Scott
>>>>>
>>>>>>
>>>>>>You have tw differen options.
>>>>>>1. What Naomi already suggested - rebuild SelectCMD and use CursorFill() instead of CursorRefresh() method.
>>>>>>2. Built such SelectCmd that accept multiple parameters.
>>>>>>
>>>>>>In your case I'm with Naoimi. Build new SelectCmd and Fill the cursor again.
>>>>
>>>>Yes, you could change SelectCMD there, but If you want to change it again you should call CursorFill() not CursorRefresh()
>>>
>>>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
>>
>>An easy way around that is to save the grid as a class. Drop the grid class on the form during Init. When you get ready to change the cursor, remove the grid, make the cursor, then drop the grid on the form again.
>
>William,
>
>That will work with the Form BoundControls = .T. setting?

Yes.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform