Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
(SQL) specifying the location of a cursor file
Message
From
26/07/2007 03:52:58
 
 
To
26/07/2007 01:17:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01243672
Message ID:
01243676
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
>Greetings all
>How do I direct the location of the cursor in the following sql statement to the c drive
>
>   SELECT * FROM apInvMast WHERE apInvMast.invPK = invPKSave INTO CURSOR "c:\curInvMastEdit" nofilter
>
>I get a syntax error on "c:\curInvMastEdit". Will not let me specify the drive. It might have something to do with sortWork, but I can not see how it would work in conjunction with sql
>
>thank, Vince

I suspect that you are not aware that the cursor can be addressed later via its name, or using the dbf() function. Here is some code snippets to give you a few ideas

SELECT * FROM apInvMast WHERE apInvMast.invPK = invPKSave INTO CURSOR curInvMastEdit nofilter
Select yourothertable
append from dbf('curInvMastEdit')
Select 0
..Do something..
Replace field1 with newvalue in curInvMastEdit
..Do some more..
Select curInvMastEdit && To make curInvMastEdit the active work area
..DO more stuff

Previous
Reply
Map
View

Click here to load this message in the networking platform