encode: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "source>" to "syntaxhighlight>") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 5: | Line 5: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
encode(str) | encode(str) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: innerPropList = encode("val1=blah ; val2=blahblah")] | [h: innerPropList = encode("val1=blah ; val2=blahblah")] | ||
[h: props = setStrProp(props, key, innerPropList)] | [h: props = setStrProp(props, key, innerPropList)] |
Revision as of 20:02, 14 March 2023
encode() Function
• Introduced in version 1.3b48
Encodes a string that was can be decoded with the decode() function. The decode() and encode() functions can be used to encode a property list so that it can be embedded within another property list.
Usage
encode(str)
Example
[h: innerPropList = encode("val1=blah ; val2=blahblah")]
[h: props = setStrProp(props, key, innerPropList)]