Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

read write cursors 2

Status
Not open for further replies.

Gilesy

Programmer
Jul 2, 2002
40
0
0
GB
Hi All,

I am trying to create a read write cursor. Having searched these threads, sombody suggested the following:

SELECT * FROM v_products INTO CURSOR lcresult NOFILTER
USE lcresult IN 0 AGAIN ALIAS myTable
SELECT myTable && this will be readwrite

SO, i do this:
Select * FROM maintbl ;
WHERE maintbl.account= laccount AND !DELETED() INTO CURSOR temptbl nofilter
Use temptbl in 0 Again alias wkngtbl

And I get an error "temptbl.DBF not found"

I'm not creating a DBF so I don't understand this! Can any body shed any light on this?

Thank You
 
Use temptbl searches a file temptbl.dbf, but thatis just the alias name. You need to Use dbf("temptbl") in 0 again.

Since VFP7 you can Select ... Into Cursor ... Readwrite.

Bye, Olaf.
 

Try using this syntax
Code:
 Use dbf('temptbl') in 0 Again alias wkngtbl

[b][i]Mike Gagnon [/i][/b]

[i]If you want to get the best response to a question, please check out FAQ184-2483 first.[/I]
[url=http://www.mcrgsoftware.com/RefoxPage/English/MainFrameset_E.htm] ReFox XI (www.mcrgsoftware.com)[/url]
 
That's it! Thanks guys!!

Gilesy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top