Length (String function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "This intrinsic function returns the length in bytes of the method object string. ...")
 
mNo edit summary
Line 20: Line 20:
(that is, 11) into %y.                                                                                   
(that is, 11) into %y.                                                                                   
     %y = 'Tahquamenon':length
     %y = 'Tahquamenon':length
===See also===
[[List of Intrinsic String Methods]]

Revision as of 21:10, 21 August 2010

This intrinsic function returns the length in bytes of the method object string.

Length is available as of version 7.2 of the Sirius Mods.

Length syntax

  %len = string:length                                                                                  

Syntax Terms

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

Examples

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

   %y = %x:length                                                                                       
                                                                                                        

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

   %y = 'Tahquamenon':length

See also

List of Intrinsic String Methods