VioReadCellStr: Difference between revisions
m Ak120 moved page OS2 API:CPI:VioReadCellStr to VioReadCellStr |
mNo edit summary |
||
Line 1: | Line 1: | ||
Reads a string of character-attribute pairs (cells) from the screen, starting at the specified location. | Reads a string of character-attribute pairs (cells) from the screen, starting at the specified location. | ||
==Syntax== | ==Syntax== | ||
VioReadCellStr(CellStr, Length, Row, Column, VioHandle) | |||
==Parameters== | ==Parameters== | ||
; CellStr (PCH) - output : Cell string buffer. | ; CellStr (PCH) - output : Cell string buffer. | ||
Line 48: | Line 34: | ||
==Remarks== | ==Remarks== | ||
If a string read comes to the end of the line and is not complete, it continues at the beginning of the next line. If the read comes to the end of the screen and is not complete, it terminates and the length is set to the length of the buffer that was filled. | If a string read comes to the end of the line and is not complete, it continues at the beginning of the next line. If the read comes to the end of the screen and is not complete, it terminates and the length is set to the length of the buffer that was filled. | ||
[[Category: | [[Category:Vio]] |
Revision as of 19:31, 26 February 2017
Reads a string of character-attribute pairs (cells) from the screen, starting at the specified location.
Syntax
VioReadCellStr(CellStr, Length, Row, Column, VioHandle)
Parameters
- CellStr (PCH) - output
- Cell string buffer.
Address of the buffer where the cell string is returned.
- Length (PULONG) - in/out
- Length of cell string buffer.
Address of the buffer length in bytes. Length must take into account that each character-attribute entry in the buffer is 2 or 4 bytes. If the length of the buffer is not sufficient, the last entry is not complete.
- Row (ULONG) - input
- Starting row location.
Starting row of the field to read, where 0 is the top row.
- Column (ULONG) - input
- Starting column location.
Starting column of the field to read, where 0 is the leftmost column.
- VioHandle (HVIO) - input
- Vio presentation-space handle.
This must be 0, unless the caller is a Presentation Manager application; in this case it must be the value returned by VioCreatePS.
Return Code
rc (APIRET) - returns
VioReadCellStr returns one of the following values:
- 0 NO_ERROR
- 355 ERROR_VIO_MODE
- 358 ERROR_VIO_ROW
- 359 ERROR_VIO_COL
- 421 ERROR_VIO_INVALID_PARMS
- 436 ERROR_VIO_INVALID_HANDLE
Remarks
If a string read comes to the end of the line and is not complete, it continues at the beginning of the next line. If the read comes to the end of the screen and is not complete, it terminates and the length is set to the length of the buffer that was filled.