en:docs:fapi:viowrtnchar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:docs:fapi:viowrtnchar [2021/08/22 05:05] prokusheven:docs:fapi:viowrtnchar [2021/09/19 04:42] (current) prokushev
Line 1: Line 1:
 {{page>en:templates:fapiint}} {{page>en:templates:fapiint}}
 +
 +====== 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>
  VioWrtNChar (Char, Times, Row, Column, VioHandle)   VioWrtNChar (Char, Times, Row, Column, VioHandle) 
 +</code>
 +
 +===== 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, in which case it must be the value returned by VioGetPs.
 +
 +===== Return Code =====
  
-==Parameters== + rc (USHORT) - return Return code descriptions are:
-;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, in which case it must be the value returned by VioGetPs.+
  
-==Return Code== +  * 0          NO_ERROR  
- 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 Considerations ====
 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 ====
 <code c> <code c>
 #define INCL_VIO #define INCL_VIO
Line 45: Line 54:
 </code> </code>
  
-===MASM Binding===+==== MASM Binding ====
 <code asm> <code asm>
 EXTRN  VioWrtNChar:FAR EXTRN  VioWrtNChar:FAR
Line 62: Line 71:
  
  
-====== Note ======+===== Note =====
  
 Text based on [[http://www.edm2.com/index.php/VioWrtNChar_(FAPI)]] Text based on [[http://www.edm2.com/index.php/VioWrtNChar_(FAPI)]]