encode: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=encode
|name=encode
|version=1.3b48
|description=Encodes a string that was can be decoded with the [[decode|decode()]] function. The [[decode | decode()]] and encode() functions can be used to encode a property list so that it can be embedded within another property list.
|description=Encodes a string that was can be decoded with the [[decode|decode()]] function. The [[decode | decode()]] and encode() functions can be used to encode a property list so that it can be embedded within another property list.



Revision as of 11:47, 10 March 2009

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

[h: str = encode(str)]

Example

[h: innerPropList = encode("val1=blah ; val2=blahblah")]
[h: props = setStrProp(props, key, innerPropList)]