Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String too long to fit
Message
 
À
22/10/2002 14:17:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00713803
Message ID:
00713999
Vues:
21
>>>There's no string literal in your test code. It shows that WAIT command has limit of the 254 characters on the text it can display. BTW, that limi'st been increased to 255 charactes in VFP8Beta.
>>
>>hmm now I am very confused. What exactly is a string literal?
>>What is the diference between a sting literal and a character string?
>>Is there a difference between a character string and a string of characters?
>>
>
>Einar,
>
>A string literal is a string constant. The variable itself is not subject to the limitation. For example:
>
>
>lcString = "This is a string constant.  It cannot be longer than 255 characters"
>lcString = lcString + lcString + lcString + lcString
>? len(lcString)  && 268 characters
Ok I am with you Steve, but why is:
lcString = "This is a string constant. It cannot be longer than 255 characters"
a string literal (or a string constant) but
lcString = replicate("E",254)
not a string literal?

What do you get if you try to create a character string (and yes I mean character string) that is greater than the 2gb limit (or the number of characters that was mentioned in this thread)?

Einar
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform