Console.Wait Method | |
Waits for a key press or mouse click on the console window.
Namespace:
VO
Assembly:
VOConsoleClasses (in VOConsoleClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD Wait() AS STRING
public virtual string Wait()
Request Example
View SourceReturn 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
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