Click or drag to resize

_MRelease Function

X#
Release variables that match a certain wildcard pattern

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION _MRelease(
	cMask AS STRING,
	lMatch AS LOGIC
) AS VOID
Request Example View Source

Parameters

cMask
Type: String
The wildcard pattern to use when releasing the memvars. May contain * and ? characters.
lMatch
Type: Logic
Indicates if the variables that need to be released should match (TRUE) or NOT match (FALSE) the pattern.
Remarks
For most dialects the variables are not removed but their values are replaced with NIL.
Remarks
Tip Tip
Dynamic memory variables (PUBLIC, PRIVATE, PARAMETERS) are supported in the X# language and runtime for compatibility only.
In most cases the type can and should be replaced with lexically scoped variables, such as LOCALs and GLOBALs.
See Also