deleteStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=deleteStrProp
|name=deleteStrProp
|version=1.3b42
|description=Returns a copy of the [[Macros:string property list|string property list]] with the specified key removed.
|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)]
deleteStrProp(props, key)
</source>
</source>



Revision as of 11:07, 10 March 2009

deleteStrProp() Function

Introduced in version 1.3b42
Returns a copy of the string property list with the specified key removed.

Usage

deleteStrProp(props, key)

Example

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