javascriptstring(
javascriptstring(
STRING
)

The javascriptstring( function converts a text string into a JavaScript string

Parameters

This function has one parameter:

string – text to convert into a JavaScript string.

Description

This function converts text into a JavaScript string literal. To do this the function surrounds the text with double quote characters, and escapes any double quote and/or backslash characters within the text. It also converts carriage returns, line feeds, tabs and vertical tabs into the corresponding backslash equivalents.

    javascriptstring({P\E "ratio"}) ☞ "P\\E \"ratio\""

See Also

- info("webbrowserlinklabel") -- returns the url of the link right clicked in a Web Browser object.
- info("webbrowserlinkurl") -- returns the url of the link right clicked in a Web Browser object.
- javascriptconstant( -- converts an expression into a JavaScript literal.
- Web Browser Object -- is used to display web pages from within a Panorama form.
- Web Browser Programming -- programming a Web Browser Object (including JavaScript).

History

Version | Status | Notes
10.2 | New | New in this version.