Length (String function)

From m204wiki
Revision as of 17:46, 4 May 2011 by JALWiccan (talk | contribs) (1 revision)
Jump to navigation Jump to search

The length of the string (String class)


The Length intrinsic function that returns the length, in bytes, of the method object string.

Syntax

%length = string:Length

Syntax terms

%length A variable to receive the numeric result of the Length method.
string The string to which the method is applied.

Usage Notes

Examples

  1. The following statement places the length of the string in %x into %y.

    %y = %x:length

  2. The following statement places the length of the string 'Tahquamenon' (that is, 11) into %y.

    %y = 'Tahquamenon':length

See also