countStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Function countStrProp==
{{MacroFunction
Returns the number of keys in a [[Macros:string property list|string property list]].
|name=countStrProp
|description=Returns the number of keys in a [[Macros:string property list|string property list]].


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: num = countStrProp(propList)]
[h: num = countStrProp(propList)]
</source>
</source>


===Examples===
|example=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r: countStrProp("a=blah; b=doh; c=meh")]
[r: countStrProp("a=blah; b=doh; c=meh")]
</source>
</source>
Returns 3.
Returns 3.
}}
[[Category:String Property List Function]]

Revision as of 01:03, 7 March 2009

countStrProp() Function

Returns the number of keys in a string property list.

Usage

[h: num = countStrProp(propList)]

Example

[r: countStrProp("a=blah; b=doh; c=meh")]
Returns 3.