Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String too long...
Message
 
 
À
01/03/2002 12:30:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00627057
Message ID:
00627149
Vues:
22
Tom,

A string constant in VFP can not exceed 254 characters. ie "you can not put more than 254 characters in between quotes"

A string variable can contain megabytes of data.

If you have to work with long blocks of static text build them from smaller string constants:
lcSelect = "select ......" + ;
   " from ....." + ;
   " where ....."
SQLExec( lnConnection, lcSelect )
>I'm trying to pass a string to sql with a length of 500. VFP truncates my string to 254. How do I pass the whole string?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform