Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY SDF to the memory variable
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00537356
Message ID:
00537418
Views:
15
>>>How can I get the same result as
COPY SDF TO Myfile.txt
>>>lcStr = Filetostr(Myfile.txt)
w/o writing to file and reading back.
>>
>>You can use low-level functions, but it would be more commands, than these two. On the other hand, you would not create a temp file...
>
>Can you explain?
pseudo-code (from the top of my head)
local lnHandle
lnHandle=fopen('MyTable')
do while not feof(m.lnHandle)
   lcStr=m.lcStr+fread()...
enddo
Anyway, this would not work in case of cursor. SELECT SQL probably would not work either, since it doesn't create SDF file...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform