Home > Error Solution, Lotus Notes Solution, Lotus Notes Tutorial > Lotus Notes Error : Label is illegal outside of a subprogram

Lotus Notes Error : Label is illegal outside of a subprogram

Label is illegal outside of a subprogram

In Lotus Notes, I found if sometime raise error when you create new notes document.  That cause you defined a label at the module level in lotus notes form. Labels may not be defined at the module level. Executable statements at the module level are executed as the module is compiled, and then discarded. Therefore, control cannot be transferred to a labeled statement at the module level.

Lotus Notes Tutorial Solution

Remove the label, or the entire labeled statement in Lotus Notes Form. Revise the script to remove any attempted transfer of control to the labeled statement. Maybe it cause use “End Sub” 2 time in script that will show “Label is illegal outside of a subprogram” too. Then please try to edit your design and it will show error code in red line and try follow this Lotus Notes Tutorial to resolve it. Thanks.

Viewed 7390 times by 2152 viewers

  1. No comments yet.
  1. No trackbacks yet.