How can I show a Runtime error?

BlitzMax Forums/BlitzMax Programming/How can I show a Runtime error?

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.

Here is correct way. It has to do with catching exceptions.

Type  TApplication
	Method Run()
        Graphics 640,480,0
		While Not KeyHit(KEY_ESCAPE)
			Cls
			If KeyHit (KEY_F1)
				RuntimeError "Poop"			
			End If	
			Flip
		Wend
	End Method
End Type


' Main code notice the try catch that whats important

Try
   (New TApplication).Run
Catch  Text:TRuntimeException  
   Notify Text.ToString()
End Try



Doug Stastny