Console.Write Method | |
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
public virtual void Write(
string sMsg
)
Request Example
View SourceParameters
- 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.
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