deleteStrProp: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Verisimilar (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
= | {{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= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: props = deleteStrProp(props, key)] | [h: props = deleteStrProp(props, key)] | ||
</source> | </source> | ||
|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")]