Global Region

Asked by Linus Holmeros

Hi
I can´t declare a region as a global variable.

My functions cry that it´s not defined

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Linus Holmeros
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

a variable must be assigned a value outside, before it is used in a def().

def some_function():
    print gvar

gvar = "some value"
some_function()

Revision history for this message
Linus Holmeros (linus-holmeros) said :
#2

Thank you =)