Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

Quote

Format: "x"

Arguments: x Any alphanumeric string

Returns: (text) x

Description: Quotation marks are used to distinguish a portion of text in a command as a string as opposed to an expression to be evaluated. For example, the command say(2+3) will cause 5 to be displayed while the command say("2+3") will display the text string 2+3.

All ASCII and extended ASCII codes between 1 and 255 can be inserted into any text string using the backslash character (\) followed by the number of the desired code. To indicate that a literal backslash is to be inserted as opposed to a code, a double backslash (\\) must be used.

A set of special characters can be used in place of a numeric code for inserting formatting characters. For example, \n will cause the code to start a new line (ASCII 10) to be inserted. All recognized codes are listed in the table below. If the backslash is followed by an unrecognized character, the backslash and the following character are ignored.

Sequence Character Represented

\b Backspace

\t Tab

\r Carriage return

\n Line feed

\f Form feed

\" Quote mark

\\ Backslash

\nnn Any character with numeric octal code nnn.

\0xnn Any character with numeric hexadecimal code nn.

\+ Node reference

Examples: "She said \"yea\" = Shee said "yea"

"First line\nSecond line" = First line
Second line

"c:\\autoexec.bat" = c:\autoexec.bat

See Also: tostring, eval, Add

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Software  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis Software  |  Expert System Software  |  Website Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2010 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend