SYMBOL

You can use SYMBOL to include a symbol in your output.

The SYMBOL function returns a one-byte character that is the ASCII character equivalent of a specified decimal value.

Syntax:
SYMBOL ( single-integer-expression )
Meaning:
SYMBOL ( decimal_value )
Returns:
A single one-byte text item

The value of the resulting item is the ASCII character equivalent of decimal_value. Valid input values are 0 to 255. Values outside of this range return "none".

A listing of decimal values (0-127) and their ASCII character equivalents is included in the Design Studio Introduction documentation.

Examples

  • SYMBOL ( 13 )

    Produces a carriage return

  • SYMBOL ( 13 ) + SYMBOL ( 10 )

    Produces a carriage return/linefeed

    You can accomplish the same result using the angle-brackets around the decimal value. For example, the second example above would be equivalent to <CR><LF> or <<0D>><<0A>>

Related functions

  • HEXTEXTTOSTREAM
  • STREAMTOHEXTEXT