Friday, February 25, 2011

jBase Infobasic Command CONTINUE

The CONTINUE statement is the complimentary statement to the BREAK statement without arguments.

Command Syntax

Use the statement within a loop to skip the remaining code in the current iteration and proceed directly on to the next iteration.

Notes

The compiler will issue a warning message and ignore the statement if it is found outside an iterative loop such as FOR...NEXT, LOOP...REPEAT.

Example

FOR I = 1 TO 30
IF Pattern(I) MATCHES "0N" THEN CONTINUE
GOSUB ProcessText
NEXT I
The above example will execute the loop 30 times but will only call the subroutine ProcessText when the current array element of Pattern is not a numeric value or null.

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems