Console.Write Method (Typed) | |
Write a string to the console window.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOConsoleClasses (in XSharp.VOConsoleClasses.dll) Version: 2.19
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