EasyManuals Logo

CipherLab 8 Series User Manual

CipherLab 8 Series
263 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #69 background imageLoading...
Page #69 background image
57
Chapter 4 BASIC Commands
ON POWER_ON GOSUB
Purpose To activate POWER_ON Event Trigger”.
Syntax ON POWER_ON GOSUB SubName|SubLabel
Remarks SubName|SubLabel” is the name or line label of a subroutine.
When the POWER key is pressed again after powering off the mobile computer,
a specific subroutine will be executed.
Example
ON POWER_ON GOSUB RESUME_ON
MAIN1:
LOCATE 8, 1
PWR_INDEX1&=PWR_INDEX&
PRINT “[POWER ON]”, PWR_INDEX1&
MAIN2:
IF PWR_INDEX& > PWR_INDEX1& THEN
GOTO MAIN1
END IF
GOTO MAIN2
RESUME_ON:
PWR_INDEX&=PWR_INDEX&+1
WAIT(100)
RETURN
ON READER GOSUB
Purpose To activate READER Event Trigger”.
Syntax ON READER(N%) GOSUB SubName|SubLabel
Remarks N%is an integer variable, indicating the reader port (usually 1 for
mobile
computers).
SubName|SubLabelis the name or line label of a subroutine.
When data is received from the reader port, a specific subroutine will be
executed.
Example
ON READER(1) GOSUB BcrData_1
BcrData_1:
OFF READER(1)
BEEP(2000, 5)
Data$ = GET_READER_DATA$(1)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the CipherLab 8 Series and is the answer not in the manual?

CipherLab 8 Series Specifications

General IconGeneral
BrandCipherLab
Model8 Series
CategoryPDA
LanguageEnglish

Related product manuals