Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Returns the length of a text string.

Syntax

Syntax:strLen string
Parameters:
  • string: String - Text to evaluate.
Return Value:Number

Examples

Examples:
_len = strLen "hello"; // returns 5 

Additional Information

See also: toArray, toString
Multiplayer:
Problems:

Notes

This command is broken, when dealing with certain special characters. For example:

strLen (toString (toArray "©")) //returns 2

The workaround is to use "count toArray (string)" instead of the strLen command. Example:

count (toArray "©") //returns 1 --General Barron 01:59, 19 June 2010 (CEST)