How can I show a Runtime error?

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

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, 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