#### Make Variables Globally Visible

Usually, when a subroutine is called, all variables go "out of scope" and are unavailable. The Make Variables Globally Visible check box makes any variables globally "visible", or usable, throughout the entire part program.

By default, this check box isn't selected so that variables in a subroutine won't replace data stored in variables with the same name in the main part program.

Example:

ASSIGN/V1 = 1

C1 = CALLSUB,MYSUB

.

.

.

SUBROUTINE/MYSUB

COMMENT/OPER,V1

END/SUB

If you deselect this check box, variables are not globally visible. The OPER comment will show a value of 0 since V1 cannot be seen from inside the subroutine.

If you select this check box, variables are globally visible, the OPER comment will show a value of 1 since V1 can be seen from inside the subroutine.

For information on variables, see the "Using Expressions and Variables" section.