Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File returned by DBF() does not exist!!!
Message
From
07/02/2000 17:00:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/02/2000 01:43:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00328150
Message ID:
00328495
Views:
31
>>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]

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform