Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why property RefreshCMD does not work?
Message
From
07/06/2006 07:41:51
Lu Ping
Zhuhai Tec Co.
Zhuhai, China
 
 
To
07/06/2006 02:26:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01127268
Message ID:
01127555
Views:
19
>>>I use cursoradapter class and set property RefreshCMD = [select * from order where sno = 'DN001'],
>>>then use cursorrefresh ,I find in the BeforeCursorRefresh event ,the parameter cSelectCMD is [select * from order] ,and RefreshCMD do not work.
>>> Is there some way to solve this?
>>>
>>>thanks
>>
>>Hi Lu,
>>
>>What are you trying to accomplish? RefreshCmd property is used by RecordRefresh method, not by CursorRefresh method. CursorRefresh method always executes the same command that was executed by CursorFill method. If command executed by CursorFill had parameters, CursorRefresh uses their current values. If you want to use different command, you should change SelectCmd property and execute CursorFill method.
>>
>
>Hi Aleksey,
>
>With this insufficient design the requery of many sql commands is impossible,
>and with CursorFill() it needs to unbind every grid connected to the cursor,
>redefine indexes, set filters, set relations, cursorsetprop() ....
>
>Enable BeforeCursorRefresh to update the selectCMD.
>Believe me, you will do happy many of us.
>
>Thanks.
>
>>Thanks,
>>Aleksey.

Hi ,Fabio Lunardon
I agree with you !Cursorfill should remove indexes and relation ..and grid recordsource...,
if CursorRefresh work with dynamic parameters WHERE condition ,that is great!
Previous
Reply
Map
View

Click here to load this message in the networking platform