Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Puzzling error
Message
De
15/04/2003 02:35:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Puzzling error
Divers
Thread ID:
00777568
Message ID:
00777568
Vues:
47
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform