Avoid literal string 8192 limit
Posted: Thu Oct 30, 2025 1:40 am
We can now have a literal string larger than 8192 characters. The example shows one from 24576.
I was looking in the forum and didn't see any solution.
I was looking in the forum and didn't see any solution.
Code: Select all
; Test how to avoid the 8192 character limit in literal string in the editor
; mytext="8192 characters is maximun here"
; Follow the instructions
;------ PART 1
; Run part 1 and copy debbuger output text
dummy8192.s
For n=1 To 8192
dummy8192+Chr(Random(96,40))
Next n
Debug dummy8192
End
;------ PART 2
; Now comment part 1 and paste the text in de a(n)
Dim a.s(2)
a(0)= "Paste copied text here"
a(1)= "Paste copied text here"
a(2)= "Paste copied text here"
a$= a(0)+a(1)+a(2)
freeArray(a())
; Now the size of the literal string is 24576
Debug Len(a$)