Inserting NewLine (line break) into resource string

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Penelope Dramas

    #1

    Inserting NewLine (line break) into resource string

    Hello,

    I'm having problem inserting line break into one of the strings located in
    project resource.

    I've tried "Line1/nLine2" (from C#) and it wouldn't work. Tried Line1 +
    Environment.New Line + Line2 also no luck.

    Is there any workaround even if it involves editing resources.xml file
    directly.

    Thanks,

    Pen D.


  • Tony K

    #2
    Re: Inserting NewLine (line break) into resource string

    Being a VB group, maybe strLine1 & vbCrLf & strLine2
    where strLine1 and strLine2 are your 2 string variables.

    Tony K

    ps: Wouldn't C# use the \n (backslash n) not the forwardslash / ?

    "Penelope Dramas" <penelopeDOTdra masATpro-transportDOTcom wrote in message
    news:OrsVzdAbHH A.4140@TK2MSFTN GP06.phx.gbl...
    Hello,
    >
    I'm having problem inserting line break into one of the strings located in
    project resource.
    >
    I've tried "Line1/nLine2" (from C#) and it wouldn't work. Tried Line1 +
    Environment.New Line + Line2 also no luck.
    >
    Is there any workaround even if it involves editing resources.xml file
    directly.
    >
    Thanks,
    >
    Pen D.
    >

    Comment

    Working...