restore map()

This function restores the maps permanently stored under key a (in any profile) with function "save map()". Return value true in case of success.

Note: The concept is not intended for mass data.

Parameters


Parameter

Description

a

The key under which the maps were stored.

b

true, if the permanently stored maps are to be deleted after restoring, i.e. as a result the maps are only available in this profile and cannot be restored again. Default: false. Note: Memory management is the responsibility of the user. Please also note that this can be problematic when restarting jobs if the stored objects have already been deleted. Alternatively, see function serialize map/list().

Example


Create 2 maps with "add to map()".

Save those maps permanently with "save map()".

Delete all maps of this profile with "clear all maps()".

Restore the maps with "restore map()" (you could also do this in another profile).

The restored maps are now available again in this profile.