Gary,
Well, string variables aren't really limited to 255 characters in VFP5. For instance, cTest=REPLICATE('X',500) will work fine. The problem is that if you say cTest='xxx...' with more than 255 characters in the string you get an error. I tried this in VFP 6 and got a different error ("Command contains unrecognized phrase/keyword" instead of "Syntax error"). Not much progress there.
You can certainly use FILETOSTR() and STRTOFILE() with larger strings. I just succsessfully used FILETOSTR() with a 20K text file.
>Cool! Are string variables limited to 255 characters in VFP6 as they have been in previous versions?
>
>>Folks,
>>
>>Have you ever needed to write a character string to a file, or read a file into a character string. Perhaps you used a memo field to hanlde the requirement. In VFP6 you can use the STRTOFILE() function to write a character string to a file, or append it to one. The FILETOSTR() function reads a file and stores the contents into a string variable.