Skip to main content
kingsleyj4929
January 24, 2024
Question

about new line

  • January 24, 2024
  • 7 replies
  • 0 views

Hi,

what is the code for seperate lines. Should cut to next line

    7 replies

    January 24, 2024

    Hi [mention:4de4ccc7bc0a4873ba4ae1865db3ad49:e9ed411860ed4f2ba0265705b8793d05] ,

    You can make use of char(10) to enter next line. 

    Thanks

    kingsleyj4929
    January 24, 2024

    Thank you so much supriya

    harshitb6843
    January 24, 2024

    You can use this site to get Unicode values of any character you are trying to input in your code - symbl.cc/.../

    January 24, 2024

    a!textField(
      readOnly: true,
      value: "Above" & char(10) & char(10) & "below"
    )

    The above code snippet is a small example for next line, hope this helps you.

    Thanks

    Supriya

    January 24, 2024

    Another small example for next line

    a!forEach(
      items: enumerate(10),
      expression: "The new number is - "&fv!item&char(10)
    )

    mikes0011
    Brainy
    January 24, 2024

    Also note that depending on how you view the rule ouptut, newlines may be flattened.  The default, "formatted" option, when the output is plaintext, is particularly bad about showing the actual formatting of the outputted text, sadly.

    Now if we switch the output to "Raw" we'll actually get a glimpse of what this text would look like elsewhere (like inserted into the DB, in a paragraph field, etc).

    kingsleyj4929
    January 25, 2024

    Thank you so much