WRITECOMMDEVICE@

Platform

Win32

Purpose

To write a string to a serial port.

Syntax

INTEGER (KIND=3) WRITECOMMDEVICE@(PORTNUM,STRING)
INTEGER (KIND=3) PORTNUM
CHARACTER (LEN=*) STRING

Description

Use this function to write a string to a serial port that has been opened by a call to OPENCOMMDEVICE@. PORTNUM must be a valid port number in the range 1 to 4.

Return value

The function returns the number of characters written or -1 if an error has occurred.

Notes

To access this routine you need to provide a definition by, for example, including the file clearwin.ins or by using the MSWIN module.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited