Loops |
Top Previous Next |
Loops
Note that Progress does not auto convert v_loop_cnt to character when concatenating with ‘Loop’ that is why we need function string() in Progress. DBMS_OUTPUT does convert v_loop_cnt to string. It is good practice to do explicit conversion any way.
Note: In Oracle numeric FOR LOOP automatically declares and initializes the counter variable. In Progress you have to define it. Thus in Oracle you can not reference counter outside the loop.
|