Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids & CursorAdapter CursorFill()
Message
From
07/01/2011 02:16:27
 
 
To
06/01/2011 19:47:51
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01494587
Message ID:
01495117
Views:
127
Have you tried with a dummy cursor as an intermediate stage? Since VFP usualy will be smart enough to use the same cursor again, the delay may be zero. Something like
myCA.CursorFill()
select * from (myCA.Alias) into cursor curdummy
SELECT Tempcursor    && where Tempcursor is the 'permanent' RecordSource of myGrid
ZAP
APPEND FROM DBF(curdummy)
myGrid.Refresh()
myGrid.SetFocus()
>Naomi,
>
>Are you sure you're GO TOP in the correct alias? I've used the safe select many times and don't remember having a need to run anything special.
>
>Positive. I even changed to GO TOP IN myTempCursor.
>
>I have used safe select in my other forms and it works fine, but not with using CursorAdapters.
>
>In this form class I am doing, it accepts a CA object, stores it in a form property oCursor. I then pass this to the grid to let it do the CursorFill. The grid also has a property oCursor which stores the same value as the form's oCursor property. The other controls in the form call the CursorFill of the form oCursor, grid controls call the grid's oCursor.
>
>Could this be the culprit? Is this not allowed or 'illegal'?
>
>Dennis
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform