deleteStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Function deleteStrProp==
{{MacroFunction
Returns a copy of the [[Macros:string property list|string property list]] with the specified key removed.
|name=deleteStrProp
|description=Returns a copy of the [[Macros:string property list|string property list]] with the specified key removed.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: props = deleteStrProp(props, key)]
[h: props = deleteStrProp(props, key)]
</source>
</source>


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

Revision as of 01:30, 7 March 2009

deleteStrProp() Function

Returns a copy of the string property list with the specified key removed.

Usage

[h: props = deleteStrProp(props, key)]

Example

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