Lang Library
The Lang library contains functions closely related to the WMLScript language core.
abort
Description: This function will interrupt the processing of the WMLScript and return the value of errorDescription (which must be a string) to the device.
Syntax: Lang.abort(errorDescription)
Example: The following example interrupts WMLScript processing, and displays the error message:
// Compare passwords if (password1!=password2) { // Passwords do not match Lang.abort("Passwords do not match!"); }
abs
Description: This function returns the absolute value of a specified number. If value is of type integer, then the result is of type integer. If value is of type floating point, then the result is of type floating point. If value is not one ...
Get WAP Development with WML and WMLScript 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.