Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Long string
Message
 
 
À
14/03/1999 17:14:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00197423
Message ID:
00197499
Vues:
16
Mark,

The length of a string constant in VFP is limited to 255 characters. To get a string longer that that you just have to + smaller strings. You can also not enter on the property sheet a string longer that 255 characters. If you set the property value in code you can get around this.

lcMyLittleString = "abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz "
lcMyBigString = lcMyLittleString + lcMyLittleString + lcMyLittleString
? len( lcMyLittleString ), len( lcMyBigString )

>How can I create a long string (> 255chars)?
df (was a 10 time MVP)

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

Click here to load this message in the networking platform