PureBasic Forum
https://www.purebasic.fr/english/

Others / Goto
https://www.purebasic.fr/english/viewtopic.php?f=37&t=71161
Page 1 of 1

Author:  Josh [ Sat Aug 04, 2018 3:20 pm ]
Post subject:  Others / Goto

Not a bug, but perhaps a better description:

replace
Quote:
To exit a loop safely, you always must use Break instead of Goto, and never use it inside a Select/EndSelect block (Unless you have the ability to manage the stack yourself, correctly.)


by
Quote:
To exit a loop safely, you always must use Break instead of Goto. Using Goto inside a Select/EndSelect block, you have to use a FakeReturn command directly before the Goto.


See discussion here.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/