Reply To: Text variables longer than 250 characters (V18)

Home Forums Problems and solutions in GDL Documentation elements, text handling Text variables longer than 250 characters (V18) Reply To: Text variables longer than 250 characters (V18)

#2870
Dominika Bobály
Keymaster

Break the texts into shorter pieces and store them in a text array. The limit of 255 characters/variable is hardcoded in the program, but you can workaround it this way. If you have a variable “_stText” for example, which has exceeded the limit, break it to 2 variables (or an array):

_stText1 = "asldgdjsasdgjsardjg..." !fill it up to 255 characters
_stText2 = "puoizpiweuztrjlasfkjrgsjhlktfspriwrute"
text2 0, 0, _stText1 + _stText2

The program can handle concatenated strings in display longer than 255 characters, but you have to take care of the slicing.

Dominika Bobály
Library Developer, Library Team
GRAPHISOFT SE