Hi Sarah,
You can use LEN() function to get the lenght of VFP string.
IF LEN(lcStr) <= 65535
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--