How to force an exception

Is there a simple way to force an exception so I can test my Unhandled Exception code?

dim f as folderitem f.delete

I use this when I want to crash my app.

Perfect. Thanks.

The official way is to use the Raise keyword on an instance of RuntimeException (or one of its subclasses). e.g.

Raise New RuntimeException

Thanks, Andrew. I’ll try that.