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?
Max. literal string length
Max. literal string length
PB 5.73 on Windows 10 & OS X High Sierra
- RSBasic
- Moderator
- Posts: 1218
- Joined: Thu Dec 31, 2009 11:05 pm
- Location: Gernsbach (Germany)
- Contact:
Re: Max. literal string length
The length is not limited. This restriction is only in the PB editor.
You can write like this:
You can write like this:
Code: Select all
MyString$ = "...8000 characters..."
MyString$ + "...other characters..."
Re: Max. literal string length
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.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?
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)