Exit function


Sep 18, 2017
I have also found Function EndApp:Void(). But I cant put it in OnCreate, OnUpdate and OnRender and also if i put it under Class statement, all of the other methods, fields etc stop working. Thus I have a question, how do i put Functions into Class statements?

Gerry Quinn

Active Member
Jun 24, 2017
As I understand it, ExitApp() is for specific targets - the way to end a general Monkey/Cerberus app for all targets is to call Error( "" ). [Or whatever message you want.]

It's called Error because apps on some targets such as HTML or Android aren't really supposed to end themselves as a general rule. But it works on all targets.

Just call it during OnUpdate(), for example:

If programWorkAllDone
Error( "Finished!" )
Top Bottom