Brother International TD-4520TN FBPL Command Reference - Page 146
Parameter, Description, Sample code, Result
View all Brother International TD-4520TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 146 highlights
10.18 FOR...NEXT LOOP Description Execute one or more lines of program repetitively. A loop counter value specifies the number of executions. Nested loops are allowed (up to 39 nested loops) in this printer. Jumping out in the middle of the FOR...NEXT LOOP is prohibited. Syntax FOR variable = start TO end STEP increment statement; start < end [EXITFOR] NEXT Parameter variable start end increment EXITFOR Description The variable name (up to 8 characters) Integer or floating point numbers Integer of floating point numbers Integer or floating point, positive or negative Exit for loop Example Sample code Result DOWNLOAD "TEST.BAS" SIZE 4,2.5 GAP 0,0 CLS FOR I=1 TO 10 STEP 1 TEXT 100,10+30*(I-1),"3",0,1,1,STR$(I) NEXT FOR I=1 TO 1000 STEP 100 TEXT 1)/10)*3,"3",0,1,1,STR$(I) NEXT 200,10+((I- FOR I=110 TO 10 STEP -10 TEXT 110))*3,"3",0,1,1,STR$(I) NEXT 300,10+(ABS(I- FOR I=1 TO 5 STEP 0.5 IF I-INT(I)=0 THEN Y=10+60*(I-1) Y=Y+30 TEXT 400,Y,"3",0,1,1,STR$(I) NEXT ELSE PRINT 1 EOP TEST See Also DOWNLOAD, EOP 141