Length (String function): Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| m first pass, match syntax diagram to template and fix tags | m match syntax diagram to revised template; fix tags. | ||
| Line 9: | Line 9: | ||
| <tr><th>%length</th> | <tr><th>%length</th> | ||
| <td>A variable to receive the numeric result of the <var>Length</var> method.</td></tr> | <td>A variable to receive the numeric result of the <var>Length</var> method.</td></tr> | ||
| <tr><th><var class="term">string</var> | <tr><th><string</th> | ||
| <td>The <var class="term">string</var> to which the method is applied.</td></tr> | |||
| </table> | </table> | ||
Revision as of 03:43, 2 February 2011
The length of the string (String class)
Length is an 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
- Length is available as of Sirius Mods version 7.2.
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