Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a cursor writable?
Message
 
To
19/06/1998 22:51:55
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00110139
Message ID:
00110162
Views:
23
The first thing you need to do is to make sure FoxPro creates the cursor as a disk file rather than just a filter on your existing table. You can do this by adding a dummy field like this:
SELECT *, ' ' AS Dummy ;
  FROM mytable ;
  WHERE mycondition ;
  INTO CURSOR mycursor
You don't need to do this when your SELECT involves a join, because a join also forces FoxPro to create a disk file. To make mycursor writeable do this:
USE DBF('mycursor') AGAIN IN 0 ALIAS mycursor2
mycursor2 is now writeable.

In VFP 5.0 you can put the NOFILTER keyword after the name of your cursor to tell VFP that you want it to create a file.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform