Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 40 of 47

PDT 1100 Terminal Programmer's Guide, pages 357 to 359

Pages 357 to 359 of 413: Handling Errors; Controlling the LCD Screen; Controlling the Keyboard Input

The original document is the PDF (3.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol PDT-1100

Page 357

PDT 1100 Terminal Programmer’s Guide

Handling Errors Statements

Definitions

ON ERROR GOTO

Enables error trapping.

RESUME

Resumes program execution at a specified location after control is transferred to an error-handling routine.

Functions

Definitions

ERL

Returns the current instruction location of the program where an execution error occurred.

ERR

Returns the error code of the most recent execution error.

Defining and Allocating Variables Statements

Definitions

COMMON

Declares common variables for sharing between user programs.

DATA

Stores numeric and string literals for READ statements.

DEFREG

Defines register variables.

DIM

Declares and dimensions arrays; also declares the string length for a string variable.

ERASE

Erases array variables.

LET

Assigns a value to a given variable.

READ

Reads data defined by DATA statement(s) and assigns them to variables.

RESTORE

Specifies a DATA statement location where the READ statement should start reading data.

K-2

Page 358

Quick Reference for Statements and Functions

Controlling the LCD Screen Statements

Definitions

APLOAD

Loads a user-defined font in the single-byte ANK mode.

CLS

Clears the LCD screen.

CURSOR

Turns the cursor on or off.

KEY

Assigns a string or a control code to a function key; also defines a function key as the LCD backlight function on/off key. This statement also defines a magic key as the trigger switch, shift key, or battery voltage display key.

KPLOAD

Loads a user-defined Kanji font in the two-byte Kanji mode.

LOCATE

Moves the cursor to a specified position and changes the cursor shape.

PRINT

Displays data on the LCD screen.

PRINT USING

Displays data on the LCD screen under formatting control.

SCREEN

Sets the screen mode and the character attribute.

Functions

Definitions

COUNTRY$

Sets a national character set or returns a current country code.

CSRLIN

Returns the current row number of the cursor.

POS

Returns the current column number of the cursor.

K-3

Page 359

PDT 1100 Terminal Programmer’s Guide

Controlling the Keyboard Input Statements

Definitions

INPUT

Reads input from the keyboard into a variable.

KEY

Assigns a string or a control code to a function key; also defines a function key as the LCD backlight function on/off key. This statement also defines a magic key as the trigger switch, shift key, or battery voltage display key.

KEY ON

Enables keystroke trapping for a specified function key.

KEY OFF

Disables keystroke trapping for a specified function key.

LINE INPUT

Reads input from the keyboard into a string variable.

ON KEY...GOSUB

Specifies an event-handling routine for keystroke interrupt.

Functions

Definitions

INKEY$

Returns a character read from the keyboard.

INPUT$

Returns a specified number of characters read from the keyboard or from a device file.

Beeping Statements

Definitions

BEEP

Sounds the beeper.

K-4