Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter features
Message
 
 
To
16/10/2002 10:25:45
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00711714
Message ID:
00711737
Views:
11
>I created a CursorAdapter Object last night. I had hoped it would work like a parameterized view--specify a few properties, call the CursorFill() and see the data--which it does. However, if I change a property or variable in the Select command, and reissue the CursorFill, the cursor is destroyed and a new one created. I had hoped the cursor would just repopulate in the background, not killing the cursor, as a parameterized view does.
>So my question is, are my expectations reasonable? I guess if the Select command changed, of course, the cursor would have to be rebuilt.
>I just wanted to build a cursor class that worked like a parameterized view on native tables, but didn't need a DBC. Looks like the CursorAdapter will almost do that.

You can do that. In my SelectCmd property, my SQL is:

select * from appusers where keyid=?nKeyID

That command never changes. When I need a new record, I specify the value of the new nKeyID parameter, then issue:

PRIVATE nKeyID
nKeyID = somevalue
THISFORM.DE.adpAppUsers.CursorFill(.f., .f.)
THISFORM.REFRESH()
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform