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 42 of 47

PDT 1100 Terminal Programmer's Guide, pages 363 to 367

Pages 363 to 367 of 413: Communicating with Communications Devices; Commenting a Program; Defining User-Created Functions

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 363

PDT 1100 Terminal Programmer’s Guide

Communicating with Communications Devices Statements

Definitions

CLOSE

Closes file(s).

INPUT#

Reads data from a device I/O file into specified variables.

LINE INPUT#

Reads data from a device I/O file into a string variable.

OPEN "COM:"

Opens a communications device file.

PRINT#

Outputs data to a communications device file.

XFILE

Transmits a designated file according to the specified communications protocol.

Functions

Definitions

BCC$

Returns a block check character (BCC) of a data block.

EOF

Tests whether the end of a device I/O file has been reached.

ETX$

Modifies the value of a terminator (ETX) for the PDT 1100 protocol; also returns the current value of a terminator.

INPUT$

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

LOC

Returns the current position within a specified file.

LOF

Returns the length of a specified file.

SOH$

Modifies the value of a header (SOH) for the PDT 1100 protocol; also returns the current value of a header.

STX$

Modifies the value of a header (STX) for the PDT 1100 protocol; also returns the current value of a header.

K-8

Page 364

Quick Reference for Statements and Functions

Commenting a Program Statements

Definitions

REM

Declares the rest of a program line to be remarks or comments.

Manipulating Numeric Data Functions

Definitions

ABS

Returns the absolute value of a numeric expression.

INT

Returns the largest whole number less than or equal to the value of a given numeric expression.

Manipulating String Data Functions

Definitions

ASC

Returns the ASCII code value of a given character.

CHR$

Returns the character corresponding to a given ASCII code.

HEX$

Converts a decimal number into the equivalent hexadecimal string.

INSTR

Searches a specified target string for a specified search string, and then returns the position where the search string is found.

LEFT$

Returns the specified number of leftmost characters from a given string expression.

LEN

Returns the length (number of bytes) of a given string.

MID$

Returns a portion of a given string expression from anywhere in the string.

RIGHT$

Returns the specified number of rightmost characters from a given string expression.

STR$

Converts a numeric expression into a string.

VAL

Converts a string into a numeric value.

K-9

Page 365

PDT 1100 Terminal Programmer’s Guide

Defining User-Created Functions Statements

Definitions

DEF FN

Names and defines a user-created function.

DEF FN...END DEF

Names and defines a user-created function.

Specifying Included Files Statements

Definitions

$INCLUDE

Specifies an included file.

REM $INCLUDE

Specifies an included file.

K-10

Page 366

Appendix L Unsupported Statements and Functions BASIC 3.0 does not support the following MS-BASIC statements and functions: - For handling sequential data files: CVD

MKD$

PRINT# USING

CVI

MKI$

RSET

CVS

MKS$

WRITE#

LSET

PRINT#

- For RS-232C interface operation: PRINT# USING WRITE#

- For interrupt handling: COM OFF

ON STOP GOSUB

COM ON

STOP OFF

COM STOP

STOP ON

ON STCOM GOSUB

L-1

Page 367

PDT 1100 Terminal Programmer’s Guide

- For graphics and color control: CIRCLE

DRAW

WIDTH

COLOR

LINE

WINDOW

CONSOLE

POINT

CSRLIN

PSET

- For I/O control: DEFUSR

POKE

PEEK

VARPTR

- For mathematical functions and trigonometric functions: ATN

LOG

SQR

COS

SCNG

TAN

EXP

SIN

CDBL

FIX

SGN

CINT

IF GOTO

STRING$

CLEAR

LPOS

SWAP

COPY

OCT$

TAB

DEF DBL

OPTION BASE

WRITE

DEF SNG

RANDOMIZE

DEFINT

RND

- For others:

L-2