>>I am trying to return a cursor string from a COM server by RETURNing FILETOSTR(DBF()). DBF() returns a valid file name, but FILETOSTR() cannot find the file! And yes, there is an active cursor in current work area. Why? Need HELP!!!
>
>This is just what I have guessed from experience:
>Only certain commands will find the filename of a temp cursor because I think its in memory and not a physical file. File() can't see them, and neither will FileToStr(). But stuff like COPY FILE and USE will, so you can copy the file to physical location before doing a FileToStr(), but ...
>
>>Note: The cursor is without record, I just want to return the structure of that cursor to the client apps (in the form load event)
>
>... you can use AFields() to grab teh structure of a cursor. Proabably easier.
And even easier way to copy structure of a cursor is
select TheCursor
copy next 0 to {YourTableHere} [with cdx]