EasyManuals Logo
Home>TSC>Printer>M23

TSC M23 Programming Manual

TSC M23
252 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 #143 background imageLoading...
Page #143 background image
TSC AUTO ID Technology Co., Ltd. 131 Copyright 2013 All Rights Reserved.
WHILEWEND
Description
Executes a series of statements as long as a given condition is True. Nested loops are allowed (up to 39
nested loops) in this printer.
Syntax
WHILE condition
[statement]
WEND
Parameter
Description
condition
Available relational operator: <, >, =, <=, >=, <>
*Relational operator <>, not equal, was supported since V5.10 EZ.
statement
One or more statements executed while condition is True.
Note:
This command has been supported since V5.10 EZ and later firmware.
Example
Sample Code
Result
DOWNLOAD "TEST.BAS"
I=0
TOTAL=0
WHILE I<100
I=I+1
TOTAL=TOTAL+I
WEND
SIZE 4,0.5
GAP 0,0
CLS
TEXT 10,10,"3",0,1,1,"1+2+3+ ... + 100 = " +STR$(TOTAL)
PRINT 1
EOP
TEST
DOWNLOAD "TEST.BAS"
data$ =""
SIZE 4,0.3
GAP 0,0
DIRECTION 1
INPUT "Data:",data$
WHILE data$ <> "Quit"
CLS
TEXT 10,10,"3",0,1,1,"Data: "+data$
PRINT 1
INPUT "Data:",data$
WEND
CLS
TEXT 10,10,"3",0,1,1,"Quit BAS"
PRINT 1
EOP
TEST
12345
67890
quit
Quit

Table of Contents

Other manuals for TSC M23

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the TSC M23 and is the answer not in the manual?

TSC M23 Specifications

General IconGeneral
BrandTSC
ModelM23
CategoryPrinter
LanguageEnglish

Related product manuals