Add New Line to String

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrNate
    New Member
    • Jun 2006
    • 4

    #1

    Add New Line to String

    I have a simple request - how can i concatenate several strings together in a text area and make sure that each string is inserted on a new line?

    "TextArea" = _
    "FullName: " & txtFirstName.Te xt & " " & txtLastName.Tex t _
    & " Course: " & strCourse _
    & " Expiry: " & ddlExpireDay.Se lectedValue & " " ddlExpMon.Selec tedValue
    & " Heard About: " & ddlHeardAbout.S electedValue
  • PEB
    Recognized Expert Top Contributor
    • Aug 2006
    • 1418

    #2
    Hi,

    Try,

    TextArea = "FullName: " & txtFirstName.Te xt & " " & txtLastName.Tex t &CHR(13) & " Course: " & strCourse _
    &CHR(13) & " Expiry: " & ddlExpireDay.Se lectedValue & " " ddlExpMon.Selec tedValue
    &CHR(13) & " Heard about: " & ddlHeardAbout.S electedValue

    :)

    Comment

    Working...