WMLScript length() function
The length() function returns the length of the string.
Syntax
n = String.length(string)
Component | Description |
---|---|
n | The length of the string returned by the function. |
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