Hi Guys,
I have a new quick question!
where do I implement correct in the xfa.host.messageBox()
the \n in order to create a second line in the message box??
Thanks in advance!!!
Diana
Hi Guys,
I have a new quick question!
where do I implement correct in the xfa.host.messageBox()
the \n in order to create a second line in the message box??
Thanks in advance!!!
Diana
xfa.host.messageBox("To proceed to PRINT VIEW, click YES!\u000aTo CLOSE the form, click NO!", "", 3, 2);
From LiveCycle Designer's Scripting Reference section "Literals"
>String literals>A string literal is a sequence of any Unicode characters within a set of quotation marks. For example:
>"The cat jumped over the fence."
>"Number 15, Main street, California, U.S.A"
>The string literal "" defines an empty sequence of text characters called the empty string.
>To embed a quotation mark character within a literal string, you must precede the quotation mark character with a backslash (\). For example:
>"The message reads: ""Warning: Insufficient Memory"""
A>ll Unicode characters have an equivalent 6 character escape sequence consisting of \u followed by four hexadecimal digits. Within any literal string, it is possible to express any character, including control characters, using their equivalent Unicode escape sequence. For example:
>"\u0047\u006f\u0066\u0069\u0073\u0068\u0021"
>"\u000d" (carriage return)
>"\u000a" (newline character)So, in place of the '\n' you would enter '\u000a' into your message string.
George Kaiser