symbol Parameter

Assign a special character to a symbol.

Scope: File

Syntax

set symbol.SymbolString [Character] [ FontName] 

Options

SymbolString 
The string that you type; it can be up to 25 characters.
Character 
The special character to be produced, entered in any of the forms below:
nnn 
A decimal-based ASCII character code, where n is a digit of value 0 to 9, inclusive. For example, character code 065 = A.
xnn 
xnnn 
A hexadecimal-based ASCII character code, where n is a digit of value 0 to 9, inclusive, or an alphabetic character of value A to F or a to f, inclusive. For example, character code x41 = A.
any key
Any character entered from the keyboard.
FontName 
The font specified for the special character.

Description

The symbol parameter assigns a special character to a symbol. When SymbolString is typed in the file, it is replaced by the Character assigned to it (providing a live parser is processing symbols). If FontName is not specified, the default font for the line is used.

Example

To specify that typing !beta in the file enters the lowercase Greek beta character (B), in font !, type:

set symbol.!beta xe1 ! 

or

set symbol.!beta 225 ! 

!beta is the symbol and xe1 or 225 represents the special character (B).

API Return Codes

-2 
FontName must be a single character. Check the syntax requirements for the parameter and issue to parameter again.
-2 
The special character specified in the set symbol command was not in the range 1 to 255. Enter a valid value and re-issue the command.


autosymbols parameter
substitute Command
symbollist Parameter