Puts a ScreenCharacter at the specified screen location.
expression.PutCharacter( _
ByVal As ScreenCharacter, _
ByVal As Integer, _
ByVal column As Integer _
) As ReturnCode
where
expression is a variable that represents a
IbmScreen Object
Parameters
- character
- A screen character. This is a ScreenCharacter Object.
- row
- The screen row on which to put the character.
- column
- The screen column on which to put the character.
Return Value
One of the following ReturnCode enum values.
Member |
Description |
Cancelled |
Cancelled. |
Error |
Error. |
PermissionRequired |
Permission is required. |
Success |
Success. |
Timeout |
Timeout condition. |
Truncated |
The text is truncated. |
This example gets a character from a screen location and puts it on another location.
Sub PutCharExample()
Dim screeenchar As ScreenCharacter
Dim rcode As ReturnCode
Set screeenchar = ThisIbmTerminal.screen.GetCharacter(12, 18)
rcode = ThisIbmTerminal.screen.PutCharacter(screeenchar, 5, 19)
If rcode = ReturnCode_Success Then
Debug.Print "success!"
End If
End Sub