SPORT_WRITE_DATA

Run-Time Function: Outputs data to the specified port.

Module: USE DFLIB

Syntax

iresult = SPORT_WRITE_DATA (port, data [, count])

port
(Input) Integer. The port number.


data
(Input) Character*(*). The data to be output.


count
(Optional; input) Integer. The count of bytes to write. If the value is zero, this number is computed by scanning the data backwards looking for a non-blank character.

Results:

The result is of type INTEGER(4). The result is zero if successful; otherwise, a Win32 error value.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: SPORT_WRITE_LINE, SPORT_READ_DATA, Using the Serial I/O Port Routines, and Communications, and Communications Functions in the Win32 SDK

Example

USE DFLIB
INTEGER(4) iresult
iresult =  SPORT_WRITE_DATA( 2, 'ATZ'//CHAR(13), 0 )
END