C0058 Compiler Warning
Message text
Exit statement occurs outside loop construct.
Explanation
Both these functions generate C0058:
|
1 2 3 4 5 6 7 8 |
// function f1 boolean lb_bool int li_num do while lb_bool li_num++ exit loop exit // generates C0058 |
|
1 2 3 4 5 6 |
// function f2 int li_num for li_num=1 to 4 li_num++ next exit // generates C0058 |
These functions compile without errors:
|
1 2 3 4 5 6 7 |
// function f1 boolean lb_bool int li_num do while lb_bool li_num++ exit loop |
|
1 2 3 4 5 6 |
// function f2 int li_num for li_num=1 to 4 li_num++ exit next |
See Also
See DO…LOOP and FOR…NEXT in the section called “DO…LOOP” in PowerScript Reference and
the section called “FOR…NEXT” in PowerScript Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest