Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory variable limit
Message
From
13/06/2011 09:56:54
 
 
To
12/06/2011 15:15:28
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:
01514214
Views:
96
>Here's my code that breaks.
>x="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456"
>
>That's 256 characters in the definition of a memory variable.
>Not sure why this is breaking.

Try it this way:
x = "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
x = x + "1234567890123456789012345678901234567890123456789012345678901234567890"
x = x + "1234567890123456789012345678901234567890123456789012345678901234567890"
x = x + "123456789012345678901234567890123456"
or this way:
X = "12345678901234567890123456789012345678901234567890123456789012345678901234567890" + ;
       "12345678901234567890123456789012345678901234567890123456789012345678901234567890" +;
       "12345678901234567890123456789012345678901234567890123456789012345678901234567890" +;
       "1234567890123456"
The problem might be that you are limited to a length of 256 characters in a single line and the x="" characters are adding to the character count per line.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform