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:
00714021
Views:
24
Well now I am going to be difficult (since this thread is way too long anyways).

To sum up:

lcStringLiteral = "EEEEE"
is a string literal because it is hard coded, but
lcNotStringLiteral = replicate("E",5)
is not a string literal because it is generated by a function but they are both the same string of characters (note not character string).

The point of my first answer to this person that started the thread was to let him (or her {I can't even remember who started this thread}) know what there was a limit of 254 (255 in vfp8beta {according to Sergey}) for character expressins used in some (i can't say all because i haven't used them all yet) functions, and that if you exceed this limit you will (more than likely) get the error message: String too long to fit.


lcStringLiteral="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuv"

which is a string of 256 characters (not a character string).
When excecuting this line in my command window (VFP7.0) I got the following error message:
"Command contains unrecognized phrase/keyword."
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform