strspecial

Converts special characters. (version 4.67 or later)

Format

strspecial <strvar> [<strval>]

Parameters

string variable <strvar>
The specified string is converted.
When the second argument(<strval>) is given, the result converting the argument stores into the string variable <strvar>.
string <strval> (optional)
When this argument is given, the result converting the argument stores into the string variable <strvar>.

Remarks

Converts the following characters in the string to special characters.

input output
\\ "\"
\n line feed
\t tab

Example

str = "AB\tCD\nEF\\nGH"
strspecial str
messagebox str "special"
strspecial str "AB\tCD\nEF\\nGH"
messagebox str "special"