O'Reilly logo

Learning WML, and WMLScript by Martin Frost

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

abort — Stop execution of WMLScript interpreter (due to an error)

Usage

Lang.abort(msg)

msg : String

Description

Aborts the WMLScript interpreter, displays the message string msg, and returns control to whatever caused the interpreter to be run (such as the WML browser). This function never returns to the WMLScript code.

If msg is invalid, it’s converted to the string "invalid".

Example

Lang.abort("fatal error: bad arguments")

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required