Click or drag to resize

MemVar.Clear Method

X#
Clear a variable by name. Tries to clear a private first and when that is not found then a public

Namespace:  XSharp
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 STATIC METHOD Clear(
	cName AS STRING
) AS LOGIC
Request Example View Source

Parameters

cName
Type: String
The name of the memory variable.

Return Value

Type: Logic
Remarks
Clear does not remove the variable but sets its value to NIL.
In the FoxPro dialect Clear does not clear local variables when these are visible.
See Also