Hi Bill,
It suppouse to be fixed in VFP7. See
FIX: FOR...EACH Fails When Character Array Element Contains More Than 255 Characters mskb #
Q305238. Can you post HTML that causes this problem, if it's not to big?
>I keep getting an error that I can't figure out.
>
>I'm using VFP 7.0. Just starting to use the VFP WebBrowser.
>
>I keep getting the error "String too long to fit"
>
>Here's a short version of my code
>
>= ALINES( THIS._iaLines, loFrame.documentElement.outerHTML )
>FOR EACH lc IN THIS._iaLines
> ... other code
>ENDFOR
>at that point lc = "<TR>"
>Because it stops on ENDFOR, I assume that it's balking at putting the next element into lc
>the next element in the array is only 243 characters long.
>
>
>but if I do this, it works fine
>
>= ALINES( THIS._iaLines, loFrame.documentElement.outerHTML )
>FOR ln = 1 TO ALEN(THIS._iaLines)
> lc = THIS._iaLines(ln)
> ... other code
>ENDFOR
>
>
>Is is really true that a variable used in a FOR EACH loop cannot accept a string 243 characters long?
--sb--