Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String too long to fit
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00713803
Message ID:
00713999
Views:
20
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform