Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Forloop Source Code
 previous   up   next 

Function Summary
void
for (inout integer: aVar) range (in integer: lowerLimit) to (in integer: upperLimit) do (in proc: statements) end for
Integer for-loop, looping from lowerLimit upward to upperLimit.
void
for (inout integer: aVar) range (in integer: upperLimit) downto (in integer: lowerLimit) do (in proc: statements) end for
Integer for-loop, looping from upperLimit downward to lowerLimit.
void
for (inout integer: variable) range (in integer: lowerLimit) to (in integer: upperLimit) step (in integer: incr_step) do (in proc: statements) end for
Integer for-loop, looping upward and incrementing by incr_step.
void
for (inout integer: variable) range (in integer: upperLimit) downto (in integer: lowerLimit) step (in integer: decr_step) do (in proc: statements) end for
Integer for-loop, looping downward and decrementing by incr_step.
void
FOR_STEP_DECLS (in type: aType)
Template function to define for-loops with step for aType.
void
FOR_UNTIL_DECLS (in type: aType)
Template function to define for-loops with condition for aType.
void
FOR_DECLS (in type: aType)
Template function to define all for-loops for aType.
void
for (inout char: variable) range (in string: stri) do (in proc: statements) end for
For-loop which loops over the characters of a string
void
for key (inout integer: keyVar) range (in string: stri) do (in proc: statements) end for
For-loop which loops over the keys (indices) of a string.
void
for (inout char: variable) key (inout integer: keyVar) range (in string: stri) do (in proc: statements) end for
For-loop which loops over characters and keys (indices) of a string.
void
for (inout char: forVar) range (in string: stri) until (ref func boolean: condition) do (in proc: statements) end for
For-loop which loops over the characters of a string
void
for key (inout integer: number) range (in string: stri) until (ref func boolean: condition) do (in proc: statements) end for
For-loop which loops over the keys (indices) of a string.
void
for (inout char: forVar) key (inout integer: number) range (in string: stri) until (ref func boolean: condition) do (in proc: statements) end for
For-loop which loops over characters and keys (indices) of a string.

Function Detail

for

const proc: for (inout integer: aVar) range (in integer: lowerLimit) to (in integer: upperLimit) do (in proc: statements) end for

Integer for-loop, looping from lowerLimit upward to upperLimit. The variable aVar is initialized with lowerLimit. The statements are executed repeatedly. After each repetition the variable aVar is incremented. After the statements were executed with upperLimit the for-loop is terminated. When lowerLimit is greater than upperLimit the statements are not executed at all.


for

const proc: for (inout integer: aVar) range (in integer: upperLimit) downto (in integer: lowerLimit) do (in proc: statements) end for

Integer for-loop, looping from upperLimit downward to lowerLimit. The variable aVar is initialized with upperLimit. The statements are executed repeatedly. After each repetition the variable aVar is decremented. After the statements were executed with lowerLimit the for-loop is terminated. When upperLimit is less than lowerLimit the statements are not executed at all.


for

const proc: for (inout integer: variable) range (in integer: lowerLimit) to (in integer: upperLimit) step (in integer: incr_step) do (in proc: statements) end for

Integer for-loop, looping upward and incrementing by incr_step. The variable aVar is initialized with lowerLimit. The statements are executed repeatedly. After each repetition the variable aVar is incremented by incr_step. After the statements were executed with upperLimit the for-loop is terminated. When lowerLimit is greater than upperLimit the statements are not executed at all.


for

const proc: for (inout integer: variable) range (in integer: upperLimit) downto (in integer: lowerLimit) step (in integer: decr_step) do (in proc: statements) end for

Integer for-loop, looping downward and decrementing by incr_step. The variable aVar is initialized with upperLimit. The statements are executed repeatedly. After each repetition the variable aVar is decremented by incr_step. After the statements were executed with lowerLimit the for-loop is terminated. When upperLimit is less than lowerLimit the statements are not executed at all.


FOR_STEP_DECLS

const proc: FOR_STEP_DECLS (in type: aType)

Template function to define for-loops with step for aType. Defines an upward and a downward counting for-loop which increments/decrements the loop variable with incr_step respectively decr_step. The for-loops are only defined when aType supports the +:= respectively -:= operator.


FOR_UNTIL_DECLS

const proc: FOR_UNTIL_DECLS (in type: aType)

Template function to define for-loops with condition for aType. Defines an upward and a downward counting for-loop which increments/decrements the loop variable with 1. Additionally a condition is checked before the statements in the loop body are executed.


FOR_DECLS

const proc: FOR_DECLS (in type: aType)

Template function to define all for-loops for aType. Defines upward and downward counting for-loops which increment/decrement the loop variable with 1 or with a given step value. The for-loops with step value are defined with the FOR_STEP_DECLS template.


for

const proc: for (inout char: variable) range (in string: stri) do (in proc: statements) end for

For-loop which loops over the characters of a string


for key

const proc: for key (inout integer: keyVar) range (in string: stri) do (in proc: statements) end for

For-loop which loops over the keys (indices) of a string.


for

const proc: for (inout char: variable) key (inout integer: keyVar) range (in string: stri) do (in proc: statements) end for

For-loop which loops over characters and keys (indices) of a string.


for

const proc: for (inout char: forVar) range (in string: stri) until (ref func boolean: condition) do (in proc: statements) end for

For-loop which loops over the characters of a string Additionally a condition is checked before the statements in the loop body are executed.


for key

const proc: for key (inout integer: number) range (in string: stri) until (ref func boolean: condition) do (in proc: statements) end for

For-loop which loops over the keys (indices) of a string. Additionally a condition is checked before the statements in the loop body are executed.


for

const proc: for (inout char: forVar) key (inout integer: number) range (in string: stri) until (ref func boolean: condition) do (in proc: statements) end for

For-loop which loops over characters and keys (indices) of a string. Additionally a condition is checked before the statements in the loop body are executed.



 previous   up   next