Page 1 of 1
Max. literal string length
Posted: Wed Dec 20, 2017 8:55 pm
by kpeters58
Purebasic just handed me a message saying that "A literal string can't be bigger than 8192 characters".
Is there a way to increase this limit or do I need to handle my long string in chunks?
Re: Max. literal string length
Posted: Tue Jan 16, 2018 4:24 pm
by RSBasic
The length is not limited. This restriction is only in the PB editor.
You can write like this:
Code: Select all
MyString$ = "...8000 characters..."
MyString$ + "...other characters..."
Re: Max. literal string length
Posted: Tue Jan 16, 2018 8:15 pm
by wilbert
kpeters58 wrote:Purebasic just handed me a message saying that "A literal string can't be bigger than 8192 characters".
Is there a way to increase this limit or do I need to handle my long string in chunks?
For such a long string, you might consider to include it in the DataSection using IncludeBinary and use PeekS to assign it to a string variable.