Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Puzzling error
Message
 
 
To
15/04/2003 02:35:03
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00777568
Message ID:
00777670
Views:
18
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         && error stops on "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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform