Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids & CursorAdapter CursorFill()
Message
From
04/01/2011 09:17:59
 
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:
01494596
Views:
58
Naomi,

Won't resetting RecordSource to an empty string 'reset' all columns? Or is this necessary if the cursor fields do not all get involved with the grid's columns?

The reason why I use CursorFill instead of CursorRefresh is because I reconstruct SelectCmd which needs CursorFill to 'take effect'.

Thanks
Dennis


>>Hi Naomi,
>>
>>If you want to use this approach, then you need to reset grid's recordsource to an empty string before calling CursorFill
>>
>>So, do you mean that instead of assigning the alias of a temp cursor with exactly the same structure as the original cursor, I assign RecordSource = "" like so..
>>
>>
>>
>>myGrid.RecordSource = ""   && use empty string instead of using a temp cursor alias with d same structure 
>>myCA.CursorFill()
>>myGrid.RecordSource = myCA.Alias
>>
>>
>>
>>Dennis
>
>Yes, that's what I mean.
>
>Alternatively, you can use always CA alias and use CursorRefresh instead of CursorFill if you only need to change parameter.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform