The Lang Library

The Lang Library contains functions that enable arithmetic operations on integer numbers (numbers without decimals). Although both the Lang and Float Libraries contain arithmetic functions, the Lang Library is most commonly used in WAP applications. Because of this, the Lang Library contains a couple of functions not specifically related to calculations: float, exit, and abort. Table 12.1 describes these special functions in greater detail.

Table 12.1. The Built-In Functions of the Lang Library
Function Syntax Argument Description Example
abort
Lang.abort(string) 
String message. Aborts the current WMLScript (due to an error) and displays the message defined in the function’s argument. The control is returned to the browser. ...

Get WAP 2.0 Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.