Click or drag to resize

Console.Read Method

X#
Use this to read the console input buffer.

Namespace:  VO
Assembly:  VOConsoleClasses (in VOConsoleClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD Read() AS STRING
Request Example View Source

Return Value

Type: String
A string containing the input characters.
Remarks
The Console:Read() method reads up to 256 characters of console input buffer.
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