WMLScript Reference

[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Chapter 8 - Libraries
Section 24 out of 34 total sections , Section 2 out of 9 sections in this chapter


Notational Conventions

Each function in the library is represented by the following information:


Function

The function name and the number of function parameters. Function names are case sensitive.

Example: abs(value)

Usage: var a = 3*Lang.abs(length);


Description

What the function accomplishes.


Parameters

The function parameter types.

Example: value = Number


Return Value

Specifies the types of return value.

Example: String or invalid.


Exceptions

Describes the possible special exceptions and error codes and the corresponding return values. Standard errors, common to all functions, are not described here.

Example: If value1 <= 0 and value2 < 0 is not an integer, invalid is returned.


Examples

Gives a few examples of how the function could be used.

var a = -3;  
 
var b = Lang.abs(a);        // b = 3  

[Cover] [Previous Section] [Next Section] [Index]


Part Number DKWS-41-002, UP.SDK Release 4.1, December 2000

Copyright © 1994-2000 Openwave Systems Inc. All rights reserved.
Please send comments and questions to sdk-doc-comments@openwave.com.