In This Topic
Puts text at a specified screen location, taking up the number of characters specified by the length parameter. PutText1 has two modes: Mask and LinearStream. These modes are set with the PutTextMaskProtectedField Property.
In Mask mode (the default), text that coincides with protected fields is skipped and is not placed on the screen.
In LinearStream mode, protected fields are ignored and the text is placed sequentially in unprotected fields until all of the text is placed on the screen or the specified length is exceeded.
Syntax
expression.PutText1( _
ByVal As String, _
ByVal As Integer, _
ByVal column As Integer, _
ByVal As Integer _
) As ReturnCode
where
expression is a variable that represents a
IbmScreen Object
Parameters
- text
- The text to place on the screen.
- row
- The row of the screen location to put the text in.
- column
- The column of the screen location to put the text in.
- length
- The length of the string to place on the screen. If the text string is longer than "length", the text is truncated.
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. |
Exceptions
Exception | Description |
ArgumentOutOfRangeException |
This exception is thrown if the row or column parameters are outside the range of valid values: (1 to Rows) or (1 to Columns).
|
See Also