length

From RPTools Wiki
Revision as of 16:09, 6 December 2008 by Craig (talk | contribs) (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(...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function length

Returns the length of a string.

Usage

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

Example

[r, length("abcde")]

Returns 5