_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.19
Syntax FUNCTION _MRestore(
cFileName AS STRING,
lAdditive AS LOGIC,
cSkel AS STRING,
lInclude AS LOGIC
) AS VOID
public static void _MRestore(
string cFileName,
bool lAdditive,
[DefaultParameterValueAttribute(null, 0)] string cSkel,
[DefaultParameterValueAttribute(true, 0)] bool lInclude
)
Request Example
View SourceParameters
- 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