Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

multiple line

i have a long string and want to type it in different lines as shown in ur example csharptutorials lesson 4 of 11 .
but i get an error if i write it simply as shown inthe example

Comments

  • frazrasheedfrazrasheed Member Posts: 18
    : i have a long string and want to type it in different lines as shown in ur example csharptutorials lesson 4 of 11 .
    : but i get an error if i write it simply as shown inthe example
    :

    Hi,

    separate your string with the + mark as
    string longString = "This is a very, " +
    "very, very, and " +
    "really very long " +
    "string";

    Thanks,
    Faraz
  • sayyed_asayyed_a Member Posts: 13
    Thanks it does work.
    I have posted another message
    Could u please reply to that too



    Hi,
    :
    : separate your string with the + mark as
    : string longString = "This is a very, " +
    : "very, very, and " +
    : "really very long " +
    : "string";
    :
    : Thanks,
    : Faraz
    :

Sign In or Register to comment.