Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- Append from a cursor
Message
 
To
02/09/1999 09:34:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00260559
Message ID:
00260568
Views:
11
>This is my code:
>SELECT * FROM accounts INTO CURSOR TheCursor
>SELECT TheFile
>APPEND FROM TheCursor
>
>I get an error message, file "THECURSOR" doesn't exist!
>
>Question!
>How do I append records FROM a cursor?
>
>Thank you in advance.

Hi Morys,

First, I'd add the NOFILTER clause to make sure I wasn't getting a filtered result set from the query. Second, get the actual filename of the cursor using the DBF() function for the filename. Basically, it's like
* Assuming TheCursor is selected
lcfilename = DBF()
SELECT TheFile
APPEND FROM (lcfilename)
hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform