Skip to content

MNE

Mnemonic

This string function returns the character sequence from this task’s terminal table in the TCONFIG file for the specified mnemonic, or it returns the escape sequence from an OPEN printer’s mnemonic table.

MNE (mnemonic-code [ ,channel][,ERR=line-ref|,ERC=error-code])
mnemonic-code
is any string containing the mnemonic whose hexadecimal code is desired.
line-ref
is the program line number or label to branch to if an error is produced by this function.
channel
is the channel number of an OPEN printer.
line-ref
is the program line number or label to branch to if an error is produced by this function.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

This function is generally available starting with release level 8.0.

Starting with release level 8.2, MNE has been enhanced to retrieve the escape sequences of printer mnemonics.

If mnemonic-code is not valid for this task terminal table or OPEN printer’s mnemonic table, an ERR=29 results.

LET LINE_FEED$ = MNE("LF")

results in LINE_FEED$ containing the hexadecimal value $0A0D$.

OPEN (2,OPT="TABLE=HPLJ+") "P1"
PRINT HTA (MNE("OPEN",2))

prints the escape sequence from the printer mnemonic table OPEN on channel 2.

Mnemonics information in the Thoroughbred Basic Customization and Tuning Guide.

From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF