a131 - try, catch syntax in examples Topic is solved

Share your ideas as to how the documentation can be improved.
hpta
Posts: 24
Joined: 27 Sep 2019, 01:43

a131 - try, catch syntax in examples

12 Apr 2021, 03:22

in a131 announcment
https://www.autohotkey.com/boards/viewtopic.php?f=37&t=2120&view=unread&sid=a5cd46bd9fd739e094b99f46c6b04b11#p393011
there is explanation about the new syntax.

The change has not been included in the documentation yet
e.g. here https lexikos.github.io /v2/docs/commands/Try.htm#ex_basic Broken Link for safety

Code: Select all

catch e  ; Handles the first error/exception raised by the block above.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: a131 - try, catch syntax in examples

12 Apr 2021, 03:31

Yes, it has. If you look past the first example, or read whats on the page, you'll see that the line you showed is probably the only one that shows the old syntax. I apparently just missed adding as (edit: and changing the MakeToast to throw the correct type of value - an Error).
hpta
Posts: 24
Joined: 27 Sep 2019, 01:43

Re: a131 - try, catch syntax in examples

12 Apr 2021, 03:50

ok :-) , i just went to the first example after encountering errors in my script, then read the text in the announcement.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: a131 - try, catch syntax in examples  Topic is solved

12 Apr 2021, 04:00

I've fixed the example.

Thanks for reporting it.

Return to “Suggestions on Documentation Improvements”

Who is online

Users browsing this forum: No registered users and 15 guests