>I have written a routine to go through our legacy FPD 2.6 PRG's to replace certain syntax. However, I have problems with PRG's 64K or greater. Are VFP strings limited to 64K?
>
>cFileContents = FREAD(nFileHandle, nEOF)
The strings may go as far as 2G, but I'm not sure this can be passed as a parameter to just any function. Functions in FoxTools, for one, were limited to 254 bytes in earlier versions; haven't tried it out recently. I suspect the StrTran (which you're probably using - I do when I write code converters) is the obstacle.
The workaround for this is to process the source in chunks - find the Procedure and Function starting/ending points, and process them one by one. They shouldn't be longer than 64K each, by definition.