[Stackoverflow] [Progress OpenEdge ABL] Access a variable from the main block in Progress 4GL

Status
Not open for further replies.
U

user13093022

Guest
Is there a way to access a variable from the main block if I am in an internal procedure and the internal procedure defines a variable with the same name?

For example:

Code:
define variable myVariable as integer no-undo.

procedure myProcedure1:
  message "myProcedure1:" myVariable.
end.

procedure myProcedure2:
  define variable myVariable as integer no-undo.
  message "myProcedure2:" myVariable.
end.

myVariable = 123.

run myProcedure1.
run myProcedure2.

Continue reading...
 
Status
Not open for further replies.
Top