Solved

Compiler limit exceeded: Line cannot exceed 2046 characters

Posted on 2008-06-13
1
518 Views
Last Modified: 2013-11-07
I have a long array, how can I get by this error?
0
Comment
Question by:JPERKS1985
1 Comment
 
LVL 18

Accepted Solution

by:
Gary Davis earned 500 total points
ID: 21783642
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now