Click or drag to resize

__MemVarDecl Function

declare a private or public variable. The private is initialized with NIL, the public variable with FALSE.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION __MemVarDecl(
	name AS STRING,
	_priv AS LOGIC
) AS VOID

Parameters

name
Type: String
Name of the variable
_priv
Type: Boolean
Should the variable be declared as private
Remarks
This function is automatically called by code generated by the compiler when you use a PUBLIC or PRIVATE statement in your code
Examples
PUBLIC CustomerName // default value = FALSE PRIVATE OrderNumber // default value = NIL
See Also