Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 538
  • Last Modified:

Compiler limit exceeded: Line cannot exceed 2046 characters

I have a long array, how can I get by this error?
0
JPERKS1985
Asked:
JPERKS1985
1 Solution
 
Gary DavisDir Internet SvcsCommented:
Break the line like this (C# version):

string longString = "some text some text some text some text " +
"some text some text some text some text " +
"some text some text some text some text " +
"some text some text some text some text ";


Gary Davis
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now