Reply to Thread

Post a reply to the thread: Setting a CRLF (carraige return + line feed) in string

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 10-22-2013, 10:31 AM
    linder

    Re: Setting a CRLF (carraige return + line feed) in string

    Jerry,

    Glad it's working fine.

    BTW, I agree. It's nearly impossible to find that \n macro trick in the documentation Currently, we are working hard on improved documentation and I'll make sure we improve this particular area. The SetupBuilder code has moved ahead faster than the documentation and examples

    Friedrich
  • 10-22-2013, 09:56 AM
    JerryS@cat

    Re: Setting a CRLF (carraige return + line feed) in string

    Thanks you for the response. Interesting. I did a search through the Developer's Guide PDF and didn't see any reference to a \n macro. Tricks of the trade, I suppose.
  • 10-22-2013, 02:11 AM
    linder

    Re: Setting a CRLF (carraige return + line feed) in string

    Hi Jerry,

    The \n macro should do what you are looking for.

    For example:

    Set Variable %LOGTEXT% to "Zeile1\nZeile2\nZeile3\nZeile4"

    See attached screenshot.

    Does this help?

    Friedrich
  • 10-21-2013, 12:51 PM
    JerryS@cat

    Setting a CRLF (carraige return + line feed) in string

    Looked through the reference manual, the entire forum, and even Google . . . anyone know how to create a constant for CRLF (carriage return + line feed)? I did see something on the forum from 2009, but it doesn't seem to work correctly.

    According to the 2009 forum entry, this is how to define a CRLF constant:

    #const $CRLF$ = "%0D%0A"
    Set Variable %LOGTEXT% to "Zeile1$CRLF$Zeile2"


    Doesn't seem to work in SB 8.1.

    The whole idea behind needing this is to string a list of values into one variable, each value separated by a CRLF in the variable so that when the variable is displayed in a Display Message Box, it displays a nice vertical list.

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •