Download BASIC Programming Guide

Transcript
90
BASIC Programming Guide For Use with CipherLab BASIC Compiler
SEND_WEDGE
Purpose
To send data to the host via keyboard wedge interface.
Syntax
SEND_WEDGE(DataString$)
Remarks
"DataString$" is the data string to be sent via the keyboard wedge interface.
Example
...
DataString$ = CHR$(9) + "TESTING" +
CHR(9)
' [Tab] + "TESTING" + [Tab]
SEND_WEDGE (DataString$)
...
See Also
SET_WEDGE, WEDGE_READY
SET_WEDGE
Purpose
To configure the keyboard wedge interface.
Syntax
SET_WEDGE(WedgeSetting$)
Remarks
"WedgeSetting$" is a 3-element character array describing the characteristics of the
keyboard wedge interface.
Example
...
Wedge_1$ = CHR$(1)
' terminal type: PCAT(US)
Wedge_2$ = CHR$(1)
' auto-detection disabled, capital lock off, case-sensitive
' use numeric keypad to transmit digits
Wedge_3$ = CHR$(5)
' inter-char-delay: 5 ms
WedgeSetting$ = Wedge_1$ + Wedge_2$ + Wedge_3$
SET_WEDGE(WedgeSetting$)
SEND_WEDGE (DataString$)
...
See Also
SEND_WEDGE, WEDGE_READY
WEDGE_READY
Purpose
To check if the keyboard wedge cable is well connected and ready to send data.
Syntax
state% = WEDGE_READY
Remarks
"state%" is an integer variable to be assigned to the result.