length(string)
Previous  Top  Next

Syntax
length(expression)
length(variable)

Arguments
expression: A string.
variable: The name of a variable containing a string.

Returns
length of the string defined by the expression or variable.

Description
String function: Returns the length of the specified string or variable name.

Sample
onLoad () {

   s = "dude";
   trace(length(s));
}

// returns the value 4

See Also
String.length()