Programming 531
Function
These commands enable you to control the visibility of a
user-defined function.
EXPORT Export.
Syntax: EXPORT FunctionName()
Exports the function FunctionName so that it is globally
available and appears on the User menu (
D ).
VIEW Sets text that the user can see by pressing V.
KEY A prefix to a key name when creating a user keyboard.
See “The User Keyboard: Customizing key presses” on
page 515.
Commands under the Cmds menu
Strings
A string is a sequence of characters enclosed in double
quotes (""). To put a double quote in a string, use two
consecutive double quotes. The \ character starts an
escape sequence, and the character(s) immediately
following are interpreted specially. \n inserts a new line
and two backslashes insert a single backslash. To put a
new line into the string, press
E to wrap the text at
that point.
ASC Syntax: asc(str)
Returns a vector containing the ASCII codes of string str.
Example: asc("AB") returns [65,66]
CHAR Syntax: char (vector or int)
Returns the string corresponding to the character codes in
vector, or the single code int.
Examples: char(65) returns "A"; char([82,77,72])
returns "RMH"