Label, definition of Topic is solved

Share your ideas as to how the documentation can be improved.
joefiesta
Posts: 497
Joined: 24 Jan 2016, 13:54
Location: Pa., USA

Label, definition of

16 Mar 2020, 08:14

A hotkey is a label. While the LABELs help section does not state so EXPLICITLY, it does put it thusly:
Hotkey and hotstring labels are also valid targets for Goto, Gosub and other commands.
Before that Label says:
A label identifies a line of code, and can be used as a Goto target or to form a subroutine.

LabelName:

To create a label, write the label name followed by a colon as shown above. Aside from whitespace and comments, no other code can be written on the same line.
The last proviso is incorrect, inasmuchas it does not apply to a one-line hotkey defintion, for example:
MyHotkeyLabel:: msgbox Hi Joe
User avatar
Ragnar
Posts: 614
Joined: 30 Sep 2013, 15:25

Re: Label, definition of  Topic is solved

16 Mar 2020, 09:24

I will replace a part of the label description with that of https://www.autohotkey.com/docs/Language.htm#labels, which is more accurate.
joefiesta
Posts: 497
Joined: 24 Jan 2016, 13:54
Location: Pa., USA

Re: Label, definition of

16 Mar 2020, 09:54

appreciated ! thanks

Return to “Suggestions on Documentation Improvements”

Who is online

Users browsing this forum: No registered users and 18 guests