Console.Read Method (Typed) | |
Use this to read the console input buffer.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOConsoleClasses (in XSharp.VOConsoleClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD Read() AS STRING
public virtual string Read()
Request Example
View SourceReturn 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.
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