length: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
Line 5: Line 5:
===Usage===
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: len = length(str, substr)]
[h: len = length(str)]
</source>
</source>



Revision as of 03:55, 23 December 2008

Function length

Returns the length of a string.

Usage

[h: len = length(str)]

Example

[r, length("abcde")]

Returns 5