Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>_gtwrite()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _gtWrite()
 Write a string to the current screen location
------------------------------------------------------------------------------
 C Prototype

     #include "gt.api"
     ERRCODE _gtWrite(
                       BYTEP fpStr,
                       USHORT uiLen
                     )

 Arguments

     fpStr is the string to write.

     uiLen is the length of the string.

 Returns

     _gtWrite() returns zero if successful.  Any other value indicates an
     error.

 Description

     _gtWrite() displays a string to the screen at the current cursor
     location.  The internal row and column coordinates are updated so the
     CA-Clipper functions, ROW() and COL() will reflect the new cursor
     position.

 Examples

     .  This example creates a simple function that displays a
        null-terminated string at a specific screen location:

        #include "gt.api"

        void PrintStr( USHORT uiRow, USHORT uiCol, BYTEP fpStr );

        void PrintStr( USHORT uiRow, USHORT uiCol, BYTEP fpStr )
        {
           _gtSetPos( uiRow, uiCol );               // Set new position
           _gtWrite( fpStr, strlen( fpStr ) );      // Write string
           return;
        }

 Files  Library is CLIPPER.LIB, header file is Gt.api.


See Also: _gtGetPos() _gtSetPos() _gtWriteAt() _gtWriteCon()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson