Click or drag to resize

_MRestore Function

X#
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.19
Syntax
 FUNCTION _MRestore(
	cFileName AS STRING,
	lAdditive AS LOGIC,
	 cSkel AS STRING,
	 lInclude AS LOGIC
) AS VOID
Request Example View Source

Parameters

cFileName
Type: String
The name of the memory file to read. The default extension is .MEM
lAdditive
Type: Logic
When set to TRUE then the existing memory variables will be saved. Otherwise all memory variables will be deleted first.
cSkel
Type: String
(Optional) Wildcard pattern to use when saving. This can include literal characters as well as the standard wildcard characters, * and ?.
lInclude
Type: Logic
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