From http://www.w3schools.com (Copyright Refsnes Data)

WMLScript length() Function


WMLScript String Library Complete WMLScript String Library

The length() function returns the length of a string.

Syntax

n = String.length(string)

Part Description
n The length of the string
string A string

Example

var a = String.length("");
var b = String.length("Hello world");
var c = String.length(23.4);

Result

a = 0
b = 11
c = 4


WMLScript String Library Complete WMLScript String Library

From http://www.w3schools.com (Copyright Refsnes Data)