Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory variable limit
Message
 
To
12/06/2011 14:56:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01514175
Message ID:
01514180
Views:
82
>I can't define a memory variable to be more than 255 (or perhaps 254) characters. Yet the docs say that the limit is 16,777,184 chars.
>What am I missing here? Thanks.

From HELP:
Maximum length of a string literal - 255
but you can assign more that that if you use:
x1 = REPLCAITE("X",255)
x1 = x1 + REPLCAITE("Y",255)
x1 = x1 + REPLCAITE("Z",255)
? x1
or even:
TEXT TO lcVeryLongText NOSHOW TEXTMERGE
     <<REPLICATE("X",8000)>>
ENDTEXT
? lcVeryLongText
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform