Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String is too long to fit
Message
 
 
À
28/12/1998 11:53:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00170802
Message ID:
00170806
Vues:
33
>I am getting an error in one of my forms that I have not seen before.
>Error 1903 (String is too long to fit).
>
>The line that crashes is calling a modal form and passing a form property as a parameter. I have not determined the limit size of the parameter, but LEN(THISFORM.MyProp) = 100 works, and LEN(THISFORM.MyProp) = 400 does not.
>
>I can call the same form from the command window with
>lcText = REPLICATE("W",405)
>DO FORM Myform WITH lcText
>
>and I don't get the error.
>
>Does anybody know what causes this?

My guess would be that "myProp" is stored as a character data type and is therefore limited to 254 characters, whereas lcText is a character string an can be longer than that.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform