Jump to content

VioWrtNChar

From EDM2
Revision as of 19:28, 12 January 2017 by Ak120 (talk | contribs) (Ak120 moved page OS2 API:CPI:VioWrtNChar to VioWrtNChar)

Description

Writes a character to the display a specified number of times.

Syntax

#define INCL_VIO
#include <os2.h>

PCH       Char;       /*  Character to be written. */
ULONG     Times;      /*  Repeat count. */
ULONG     Row;        /*  Starting row position. */
ULONG     Column;     /*  Starting column position. */
HVIO      VioHandle;  /*  VIO presentation-space handle. */
APIRET    rc;         /*  Return code. */

rc = VioWrtNChar(Char, Times, Row, Column, VioHandle);

Parameters

Char (PCH) - input
Character to be written.

The address of the character to be written.

Times (ULONG) - input
Repeat count.

The number of times to write the attribute.

Row (ULONG) - input
Starting row position.
Column (ULONG) - input
Starting column position.
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

VioWrtNChar 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 repeated write gets to the end of the line and is not complete, it continues at the beginning of the next line. If the write gets to the end of the screen, it terminates.


Example Code


Related Functions

  • [[OS2 API:CPI: