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

Click here to load this message in the networking platform