Erik..
CursorToRS(oRecordSet [, cTableAlias | nWorkArea] [, lNoData ])
The second parameter for CursorToRS, which is optional, is either the alias or workarea number. Like other functions, if you omit the parameter, the alias in the current workarea is used. Granted, VFPCOM does not open the table for you, but so what????
I still don't see where the big mystery in all of this is...< s >... Where is the confusion here????
>>There is code that does the same thing at
www.classx.com. The file is named dbftors.zip or something like that.
>
>DBFToRS does
not do the same thing. Ken's routine works with a table name passed as a parameter, and opens that table from disk. Even so, Ken's routine also makes no claim to work when run in a COM server (even though his implementation would, because it works from disk). VFPCOM received the
alias name of a cursor open in the calling process, which may or may not have a disk presence. The key difference is in the conversion process' access method to the VFP data in question.