Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:fapi:viowrtnchar [2021/08/20 08:35] – prokushev | en:docs:fapi:viowrtnchar [2021/09/19 04:42] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{page> | {{page> | ||
+ | |||
+ | ====== VioWrtNChar ====== | ||
+ | |||
+ | ===== Brief ===== | ||
VioWrtNChar writes a character to the display a specified number of times. | VioWrtNChar writes a character to the display a specified number of times. | ||
- | ==Syntax== | + | ===== Syntax ===== |
+ | |||
+ | <code c> | ||
| | ||
+ | </ | ||
+ | |||
+ | ===== Parameters ===== | ||
+ | |||
+ | * Char (PCH) - input : Address of the character to be written. | ||
+ | * Times (USHORT) - input : Number of times to write the character. | ||
+ | * Row (USHORT) - input : Starting cursor row. | ||
+ | * Column (USHORT) - input : Starting cursor column. | ||
+ | * VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, | ||
+ | |||
+ | ===== Return Code ===== | ||
- | ==Parameters== | + | |
- | ;Char (PCH) - input : Address of the character to be written. | + | |
- | ; | + | |
- | ;Row (USHORT) - input : Starting cursor row. | + | |
- | ;Column (USHORT) - input : Starting cursor column. | + | |
- | ;VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, | + | |
- | ==Return Code== | + | |
- | rc (USHORT) - return | + | * 355 ERROR_VIO_MODE |
- | Return code descriptions are: | + | * 358 ERROR_VIO_ROW |
- | * 0 NO_ERROR | + | * 359 ERROR_VIO_COL |
- | * 355 ERROR_VIO_MODE | + | * 436 ERROR_VIO_INVALID_HANDLE |
- | * 358 ERROR_VIO_ROW | + | * 465 ERROR_VIO_DETACHED |
- | * 359 ERROR_VIO_COL | + | |
- | * 436 ERROR_VIO_INVALID_HANDLE | + | |
- | * 465 ERROR_VIO_DETACHED | + | |
- | ==Remarks== | + | ===== Remarks |
If a repeated write gets to the end of the line and is not complete, the write continues at the beginning of the next line. If the write gets to the end of the screen, the write terminates. | If a repeated write gets to the end of the line and is not complete, the write continues at the beginning of the next line. If the write gets to the end of the screen, the write terminates. | ||
- | ===PM Considerations=== | + | ==== Presentation Manager |
Write a character to the Advanced VIO presentation space a number of times. The caller must specify the starting location on the presentation space where the string is to be written. | Write a character to the Advanced VIO presentation space a number of times. The caller must specify the starting location on the presentation space where the string is to be written. | ||
- | ==Example Code== | + | ===== Example Code ===== |
- | === C Binding=== | + | ==== C Binding |
- | <PRE> | + | <code c> |
#define INCL_VIO | #define INCL_VIO | ||
Line 43: | Line 52: | ||
USHORT | USHORT | ||
- | </PRE> | + | </code> |
- | ===MASM Binding=== | + | ==== MASM Binding |
- | <PRE> | + | <code asm> |
EXTRN VioWrtNChar: | EXTRN VioWrtNChar: | ||
INCL_VIO | INCL_VIO | ||
Line 58: | Line 67: | ||
Returns WORD | Returns WORD | ||
- | </PRE> | + | </code> |
- | ====== Note ====== | + | ===== Note ===== |
Text based on [[http:// | Text based on [[http:// |