Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file fails with embedded files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00814381
Message ID:
00816369
Views:
23
Hi Sarah,

You can use LEN() function to get the lenght of VFP string.
IF LEN(lcStr) <= 65535 
* The size of the string is less than or equal 64K
ELSE
ENDIF
You can also modify UDF's you're using so they can handle longer strings.

>>Be carefull with strtofile and filetostr UDF's for VFP5 you found because they may be limited to file size of 64K.
>I've been thinking about this and pondering some other code which uses strtofile. In this I work through a table and create html which I output then pop a browser. How do I test that my string doesn't exceed 64K.
>
>Is it enough to simply check that len($str) < 64000?
>
>I add to my string through a method so it's simple enough to test the string each time I try to add to it.
>
>thanks in advance.
>
>Sarah
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform