www.lucersoft.com

   
       Home  |   News  |   Downloads  |   Order  |   Contacts

 

 

Main

Home

Site map

Products

LC Backup

LC Copier

HTML Batch Editor

HTML Batch Editor PRO

Tennis 2001

Freeware

Documentation

HTML Batch Editor PRO

LC Basic

Information

Order

Update Policy

Support

Contacts

Links

 
 
 
 

 
 
 
 
 
 
 
 
 

For, Next

Language reference


Syntax

 

For counter = start To end (Step step)

 statements

Next


Description:

 

Repeats a group of statements a specified number of times.


Arguments:

 

counter

Numeric variable used as a loop counter. The variable can't be an array element.


start

Initial value of counter.

end

Final value of counter.

step

Amount counter is changed each time through the loop. If not specified, step defaults to one.

statements

One or more statements between For and Next that are executed the specified number of times

 


You can nest For...Next loops by placing one For...Next loop within another. Give each loop a unique variable name as its counter. The following construction is correct:

 

For I = 1 To 10
      For J = 1 To 10
            For K = 1 To 10
            . . .
            Next
      Next
Next

See also:

 

Break, Continue


A statements For, Next is a part of kernel LC Basic.

 
Last updated: November 2, 2003
Copyright © 2002 Lucersoft

Add to favorites

Back