Click or drag to resize

Console.Write Method

X#
Write a string to the console window.

Namespace:  VO
Assembly:  VOConsoleClasses (in VOConsoleClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD Write(
	sMsg AS STRING
) AS VOID
Request Example View Source

Parameters

sMsg
Type: String
The string to be written to the console.
Remarks
This method writes a string to the console. The string is written at the current cursor position.
Examples
The following lines wait for, read, and echo console input.
X#
1FUNCTION Start(p)
2LOCAL oCon AS Console
3LOCAL sInput AS STRING
4oCon := Console{}
5oCon:Clear()
6oCon:Write("Enter text: ")
7sInput := oCon:Read()
8oCon:Write("You entered : " + sInput)
See Also