Page 1 of 1

Can the function name be used as the g-Label name?

Posted: 30 Jun 2019, 01:50
by afe
Hello,

In the manual, I did not find such an introduction, but it does work. Like the example below,

Code: Select all

Gui, Add, Edit, w200 gEdit vEdit
Gui, Show, h300 w400
return

Edit()
{
    msgbox OK
    return
}
Is this a supported grammar?

Re: Can the function name be used as the g-Label name?  Topic is solved

Posted: 30 Jun 2019, 02:17
by Datapoint
[v1.1.20+]: If not a valid label name, a function name can be used instead.
https://www.autohotkey.com/docs/commands/Gui.htm#Events

Re: Can the function name be used as the g-Label name?

Posted: 30 Jun 2019, 09:49
by afe
Datapoint wrote:
30 Jun 2019, 02:17
[v1.1.20+]: If not a valid label name, a function name can be used instead.
https://www.autohotkey.com/docs/commands/Gui.htm#Events
Thank you!