length: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function length== Returns the length of a string. ===Usage=== <source lang="mtmacro" line> [h: len = len(str, substr)] </source> ===Example=== <source lang="mtmacro" line> [r, length(...)
 
Line 5: Line 5:
===Usage===
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: len = len(str, substr)]
[h: len = length(str, substr)]
</source>
</source>



Revision as of 03:54, 23 December 2008

Function length

Returns the length of a string.

Usage

[h: len = length(str, substr)]

Example

[r, length("abcde")]

Returns 5