Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing to Text file
Message
From
14/12/2013 08:24:18
 
 
To
13/12/2013 14:49:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01590155
Message ID:
01590228
Views:
83
>That's not unexpected since VFP opens the file for every record, it was more to check the concept. Try this instead:
>
>Create Cursor BILLCOMPRESS (PS C(254))
>Append From (m.CPSFILEPATH) Sdf
>lcText=''
>scan
>   lcText = lcText + trim(ps)
>Endscan
>Strtofile(lcText,newpath)
Yuck - if Len(lcText) grows much beyond 2**16 you will hamper vfp heavily by forcing to allocate new memory. Turn to LLF instead, more stable overall.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform