EasyManua.ls Logo

Kollmorgen AKD Basic

Kollmorgen AKD Basic
506 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.1.8 For...Next
General Information
Type Statement
Description Allows a series of lines to be executed in a loop a specified number of times.
Units N/A
Range N/A
Default
Value
N/A
Data Type N/A
Start Version TBD
Description
Allows a series of lines to be executed in a loop a specified number of times. You can exit from
a For...Next loop using the Exit statement. If Step increment is omitted then increment defaults
to 1. The loop_counter can be floating point or integer. The Step increment can be positive or
negative, integer or floating point.
Example
'print 2 to 100 in 2's
Dim x as integer
For x = 1 to 100 step 2
print x
next
'print 0.5 to 1.2 in 0.1 increments
Dim x as float
For x = 0.5 to 1.2 step 0.1
print x
next
Related Topics
While...Wend | Exit
105 Kollmorgen | March 30, 2012

Table of Contents

Related product manuals