Brother International TD-4420TN FBPL Command Reference - Page 149
Do Until I>100
![]() |
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 149 highlights
Example Sample Code DOWNLOAD "TEST.BAS" I=0 TOTAL=0 DO I=I+1 TOTAL=TOTAL+I IF I=100 THEN EXITDO LOOP 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 Result DOWNLOAD "TEST.BAS" I=0 TOTAL=0 DO WHILE I100 TOTAL=TOTAL+I I=I+1 LOOP 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 144
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/149.png)
144
Example
Sample Code
Result
DOWNLOAD "TEST.BAS"
I=0
TOTAL=0
DO
I=I+1
TOTAL=TOTAL+I
IF I=100 THEN EXITDO
LOOP
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"
I=0
TOTAL=0
DO WHILE I<=100
TOTAL=TOTAL+I
I=I+1
LOOP
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”
I=0
TOTAL=0
DO UNTIL I>100
TOTAL=TOTAL+I
I=I+1
LOOP
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