Displays a string in the terminal window as though it had been received from the host.
expression.DisplayText( _
ByVal As String _
) As ReturnCode
where
expression is a variable that represents a
Screen Object
Parameters
- text
- The string to display.
Return Value
One of the following ReturnCode enumeration values.
Member |
Description |
Cancelled |
Cancelled. |
Error |
Error. |
PermissionRequired |
Permission is required. |
Success |
Success. |
Timeout |
Timeout condition. |
Truncated |
The text is truncated. |
'This example displays text from the screen as if it came from the host
Sub DisplayTextExample()
Dim LF As String
Dim CR As String
LF = Chr(10)
CR = Chr(13)
ThisScreen.DisplayText "Hello" & CR & LF & "Goodbye"
End Sub