Returns the number of characters in a given string.
Syntax
int string.Length()
Returns
The int that corresponds to the number of characters in the string.
int
Remarks
If the string is empty, the method returns 0.
Sample
stringSample.rfsvar str = "My hovercraft is full of eels."; var a = str.Length(); trace "How long is a piece of string? Well, it's ", a, " long.";
stringSample.rfs
var str = "My hovercraft is full of eels."; var a = str.Length(); trace "How long is a piece of string? Well, it's ", a, " long.";
"How long is a piece of string? Well, it's ", 30, " long."
Figure 328. The trace message output of the script above
Related links
Search Highlighter (On/Off)