I am now a proud owner of BlitzMax.

BlitzMax Forums/BlitzMax Beginners Area/I am now a proud owner of BlitzMax.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Okay I thought of a better example for Try and Catch. This is what should be in the help file:

Try
    repeat
        For x = 0 to 799
            For y = 0 to 599
                ' Oops.
                'a = 0
                Repeat
                    a:+1
                    print a

                    ' Help!  Jane!  Get me off this crazy thing!
                    if a>20 throw "chunks"
                Until a = 10
            next
        next
    forever
Catch a$
	print "caught exception "+a$
EndTry



See? Now it is obvious why you would want to use it. It would be a pain in the ass getting out of that loop otherwise.