Click or drag to resize

_MRestore Function

Recreate public and private variables previously saved to a file and initialize them with their former values.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION _MRestore(
	cFileName AS STRING,
	lAdditive AS LOGIC,
	cSkel AS STRING := NULL,
	lInclude AS LOGIC := TRUE
) AS VOID

Parameters

cFileName
Type: String
The name of the memory file to read. The default extension is .MEM
lAdditive
Type: Boolean
When set to TRUE then the existing memory variables will be saved. Otherwise all memory variables will be deleted first.
cSkel (Optional)
Type: String
(Optional) Wildcard pattern to use when saving. This can include literal characters as well as the standard wildcard characters, * and ?.
lInclude (Optional)
Type: Boolean
Remarks
When memory variables are restored, they are recreated as private variables with the scope of the current procedure or function unless they exist as public variables and you specify the ADDITIVE clause . If ADDITIVE is specified, public and private variables with the same names are overwritten unless hidden with PRIVATE. If ADDITIVE is not specified, all public and private variables are released before the memory file is loaded. In that case all restored variables will become private variables.
See Also