Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writeable Cursors?
Message
From
16/12/1997 14:41:39
 
 
To
16/12/1997 04:57:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00066144
Message ID:
00066331
Views:
37
>How do you make a SQL Cursor writeable ?
>
>Select * from my_file into cursor my_cursor
>
>and then what?
>
>I seem to have seen a solution to this somewhere, but it just slipped my mind.
>
>Thanx
>
>Peter


Hi, Peter
As others have told you the solution is:
SELECT * FROM MyTable INTO CURSOR Query
USE DBF("Query") IN 0 AGAIN ALIAS Writable

I would suggest that you use the NOFILTER clause of SELECT-SQL to ensure that VFP is giving you a cursor, or you could inadvertently change your source table. The resultant cursor (Writable) is also bufferable, e.g. CURSORSETPROP("Buffering", 5, "Writable") will set optimistic table buffering.

HTH
Ned
Ned

Reality is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform