Using Variables in WMLScript

Chapter 6 discussed the concept of variables and how they are essentially areas within applications where you can store user-inputted data.

Variables are an important part of any type of programming because they enable developers to write flexible code. Variables represent data and provide a temporary storage area for data.

In other words, when an application is used, variables are replaced with real data. This enables the same application to process different sets of data. In WML, the only type of data a variable can hold is a string value. However, in WMLScript, variables can hold not only strings, but a variety of data types (refer to Table 10.1).

In WMLScript, variables are available only within a specific function. ...

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.