C0083 Compiler Error
Message text
Illegal for loop step value.
Explanation
The increment values in the STEP clauses in some of the following
FOR loops generate C0083. Any increment value that evaluates to 0
generates the error. For example, for integer variables, 0.1 is rounded
down to 0 and generates the error, while 2.3 is rounded down to 2.
For an integer, -1E-1 evaluates to 0 and the error is generated, but
for decimal and real values, it evaluates to a small negative number and
the error is not generated. However, the FOR loop will not be entered at
runtime if the ending value of the variable is greater than the starting
value.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
int li_a long ll_a longlong lll_a dec ld_a real lr_a // Integer variables for li_a=1 to 5 step 0 // generates C0083 ... next for ll_a=1 to 5 step 0.1 // generates C0083 ... next for lll_a=1 to 5 step 2.3 // ok ... next for li_a=1 to 5 step -1E-1 // generates C0083 ... next // Decimal variables for ld_a=1 to 5 step 0.1 // ok ... next for ld_a=1 to 5 step -1E-1 // ok ... next for ld_a=1 to 5 step 0.0 // generates C0083 ... next // Real variables for lr_a=1 to 5 step 0.1 // ok ... next for lr_a=1 to 5 step -1E-1 // ok ... next for lr_a=1 to 5 step 0E1 // generates C0083 ... next |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest