0

Line feed/Carriage return in an Alert

Is this possible?  Rather than

The quick brown fox jumped ove the lazy dog 

One could format as

The quick brown fox
jumped over the
Lazy dog

 

TIA

3 replies

null
    • Fred
    • 1 yr ago
    • Reported - view

    It is weirdly simple in Ninox. You would write your code like:

    alert("The quick brown fox
    jumped over
    the lazy dogs.")
    

    Here is a sample of some code that uses a variable that has text with carriage returns and text with a carriage return.

    alert("Please enter in data in the following fields:
    " + showNames)
    

    Notice the carriage return at the end of fields:.

      • Alan_Cooke
      • 1 yr ago
      • Reported - view

      Fred hahahaha - Someone had to ask - often have egg on my face :-)

    • Ninox developper
    • Jacques_TUR
    • 1 yr ago
    • Reported - view

    You can use also the ASCII code 13 + 10 (Carriage Return + Line Feed) with this code :

    var CRLF := urlDecode("%0D%0A");
    alert("coucou"+CRLF+"les amis");

    In line 1, urlDecode converts the hexadecimal codes 0D (13) and 0A (10) into invisible characters on a string.

Content aside

  • 1 yr agoLast active
  • 3Replies
  • 126Views
  • 4 Following