Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory variable limit
Message
 
 
To
13/06/2011 21:07:52
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:
01514273
Views:
96
>>No, the limit is 255 characters for a string literal.
>
>>
>>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
>
>How is that? I can open a large file containing a long string that far exceeds 256 characters (which I do a lot):
>
>lcFileContents = FILETOSTR("somefile.txt")
>
>I have other code that has RTF codes for a header that exceeds 256 characters. So how can the limit be 255 characters?

There's a difference between a memory variable that has a limit of about 16MB and a string literal with limit of 255 charaters. In your example lcFileContents is a memory variable and "somefile.txt" is a string literal.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform