Skip to content
ChartDeck ChartScript docs Account Open the terminal

CS1023

error This string is longer than max characters.

#What it means

A single string literal is longer than the maximum the language allows (the message gives the limit, currently 4,096 characters).

#Typical cause

  • A very long text, such as a big list of values, pasted into one string.

#How to fix it

  • Split the text into several shorter strings and join them with + where you need them.
  • For data, consider an input or an array built from several shorter strings.

#Example

Producing it needs a string literal more than 40,960 characters long, far too long to show on this page.

  • CS1021 — This string is not closed on the same line.
  • CS5104 — A string can be at most max characters.

The ChartScript documentation is in English for now; translations will follow.