Click or drag to resize

Console.Wait Method

X#
Waits for a key press or mouse click on the console window.

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

Return Value

Type: String
A character representation of the key pressed or mouse button clicked. In general this return value should not be used.
Remarks
This method waits for a key press or mouse click on the console.
Examples
The following lines display the current date and then wait for a keypress
X#
1FUNCTION Start(p)
2LOCAL oCon AS Console
3LOCAL sInput AS STRING
4oCon := Console{}
5oCon:Clear()
6oCon:Write("The date: " + DTOC(TODAY())
7oCon:WriteLine("Press any key to continue")
8sInput := oCon:Wait()
See Also