Click or drag to resize

Console Constructor (Logic)

X#
Instantiate a new Console object.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOConsoleClasses (in XSharp.VOConsoleClasses.dll) Version: 2.19
Syntax
 CONSTRUCTOR(
	lNew AS LOGIC
)
Request Example View Source

Parameters

lNew
Type: Logic
A logical value forcing the allocation of a new console window, if set to TRUE. The default is FALSE.
Remarks
The constructor allocates a new console window. By default, or if the lNew parameter is set to FALSE, X# first tries to use an already open console window, e.g., if the application was started from the command line. If this fails, or if lNew was set to TRUE, Console{} allocates and opens a new console window.
Examples
This code snippet creates and clear a new console window:
X#
1FUNCTION Start()
2LOCAL oCon AS Console
3oCon := Console{}
4oCon:Clear()
See Also