Make the cursor appear as if it was a table by using the following procedure. Once the prog is ended the cursor goes away.
*----------------------------------------------------------------------------------------------
*PARAMETERS -
* cCursorName = The name of the cursor you created
* cAliasName = The Alais name of the cursor
* Note: once you name the Alias it can be used just as if you were working with a free table
*----------------------------------------------------------------------------------------------
***********************************************************************************************
Also, don't forget to add the "NOFILTER" clause on the SELECT ... INTO CURSOR ... statement, because without it you may find that the cursor is nothing more than the original table, USE AGAIN'ed, and filtered to what you SELECT'ed.
ie:
The following can sometimes (always?) output "tablename.dbf"
Code:
SELECT * FROM tablename WHERE fld1=5 INTO CURSOR cursorname
SELECT cursorname
?DBF()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.