Run-Time Function: Returns the baud rate, parity, data bits setting, and stop bits setting of the communications port.
Module: USE DFLIB
Syntax
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_SET_STATE, Using the Serial I/O Port Routines, and Communications, and Communications Functions in the Win32 SDK
Example
USE DFLIB
INTEGER(4) iresult
INTEGER baud
INTEGER parity
INTEGER dbits
INTEGER sbits
iresult = SPORT_GET_STATE( 2, baud, parity, dbits, sbits )
END