Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor adapters
Message
 
 
To
17/03/2005 17:58:16
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00997080
Message ID:
00997204
Views:
11
Parameterize the SelectCmd much in the same way you would do for a view:

select ... from sometables ... where somefield = ?somevalue order by ...

Set the NoData property to .T. and in the LOAD of the form, you set the value of ?somevalue then call the CursorRefresh of the CA --

private somevalue
somevalue = 'blahblahblah'
THIS.DataEnvironment.adpCAName.CursorRefresh()

>Hi
>
>I have a cursor adapter (CA) that selects a group of records from my table which I display in a grid. When I do a .CursorFill it closes the table and reopens it with the new data. This destroys my grid.
>
>I tried changing the RefreshCmd and used a .CursorRefresh() but that did not change the data.
>
>How do I change the data in a cursor adapter without destrying my grid?
>
>I am a new to cursor adapters and would like to know where I can get a beginners guide. I find the VFP help somewhat short on conceptual info.
>
>Regards
>Geoff Scott
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform