Difference between revisions of "ArraySerialize"
See also
imported>QQuix (New user function) |
imported>QQuix (See also) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
'''Syntax:''' | '''Syntax:''' | ||
ArraySerialize | (SerialArray<sub> :array</sub>) ArraySerialize Array<sub> :array</sub>, Prefix<sub> :string</sub> | ||
Serializes a multi-dimensional array into a one-dimension StringMap array. | |||
The arguments are: | The arguments are: | ||
Line 36: | Line 37: | ||
==Notes== | ==Notes== | ||
*This function is designed to be used in conjunction with its sister function [[ArrayDeserialize]] | |||
*A serialized array is useful for storing array data in external media (like a Pluggy INI file) | *A serialized array is useful for storing array data in external media (like a Pluggy INI file) | ||
Line 47: | Line 50: | ||
==Usage== | ==Usage== | ||
Call ArraySerialize MyArray "" | let MySerialArray := Call ArraySerialize MyArray "" | ||
The first call should have a null 'Prefix' attribute (unless you want to prepend a literal to all your keys) | The first call should have a null 'Prefix' attribute (unless you want to prepend a literal to all your keys) | ||
Line 112: | Line 115: | ||
end | end | ||
==See Also== | ==See Also== | ||
* [[ArrayDeserialize]] | |||
* [[ArrayToINIsection]] | |||
* [[ArrayFromINIfile]] | |||
* [[User Functions]] | * [[User Functions]] | ||