Is it unnecessary to declare a reference to a control variable in a function?
I found that it works fine even if the control variable is not declared in the function.
Code: Select all
Gui, Add, Text, w50 vtext
Gui, Show, h100 w200
f()
return
f()
{
; Global text
guicontrol,, text, xxxxxxxx
return
}