0222: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
m (1 revision)
 
No edit summary
 
Line 2: Line 2:
|0222
|0222
|Missing [[Next]] [[statement]]
|Missing [[Next]] [[statement]]
|Missing [[FOR]] or mismatched [[FOR / NEXT]] statements. Some possibilities
|Missing [[FOR]] or mismatched [[FOR]]/[[NEXT]] statements. Some possibilities
# A NEXT statement with no preceding FOR statement is encountered.
# A NEXT statement with no preceding FOR statement is encountered.
# The loop variable of the preceding FOR statement does not match the variable in the NEXT statement.|
# The loop variable of the preceding FOR statement does not match the variable in the NEXT statement.|

Latest revision as of 17:21, 18 July 2013

Summary:

Missing Next statement

Cause:

Missing FOR or mismatched FOR/NEXT statements. Some possibilities

  1. A NEXT statement with no preceding FOR statement is encountered.
  2. The loop variable of the preceding FOR statement does not match the variable in the NEXT statement.

Remedy:

  1. Place a FOR statement before the NEXT statement or remove the NEXT statement.
  2. Make sure that the loop variables match for corresponding FOR / NEXT statement.

Note: Prior to release 3.50, this error code applied to either a missing NEXT statement or an improperly terminated IF structure. It now applies only when a NEXT statement is missing. Business Rules! now responds to improperly terminated IF structures with error code 1124.