WMLScript Standard Libraries Quick Reference
The standard libraries form an important part of the WMLScript scripting language. They provide a lot of useful functions. Some of which are impossible to be implemented by our own. For example, to obtain the value of a WML variable, the only choice is to use the setVar() function of the WMLBrowser standard library. WMLScript contains six standard libraries in total. This reference provides a description for each of the functions. Plenty of example scripts are included to illustrate the usage of the functions.
Note that some functions of the standard libraries are only available on mobile devices that can perform floating-point operations. To learn the details, see "Checking Whether Mobile Devices Support Floating-point Numbers and Operations" of our WMLScript tutorial.
Table of Contents
WMLScript's WMLBrowser standard library provides a group of functions to control the WML browser or to get information from it.
WMLScript's Dialogs standard library contains functions for displaying alert messages, confirmation messages and input boxes to users.
WMLScript's String standard library provides various functions that help us manipulate strings.
WMLScript's Float standard library contains functions that help us perform a number of floating-point arithmetic operations.
WMLScript's Lang standard library provides functions related to the WMLScript language core. It contains functions for generating random numbers, performing some arithmetic operations and dealing with data type conversion.
WMLScript's URL standard library contains a number of functions that help us manipulate URLs.