[futurebasic] FN TermGetStatus

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2008 : Group Archive : Group : All Groups

From: Rich Love <richlove@...>
Date: Wed, 2 Jul 2008 08:01:30 -0500
I don't know when this broke but FN TermGetStatus  no longer works.
It should test the serial port to see if it is in use.
It does not work in FB and does not even exist in FBtoC in Subs  
Files.incl

Here is the routine I used for many years that no longer works.
It thinks the port is always available for use (even if the port is  
really in use).

LOCAL FN TestSerialPort$(SerialPort%)
// Variables
DIM Result$

SELECT CASE FN TermGetStatus(SerialPort%)
CASE 0 : Result$ =gfbserialname(abs(SerialPort%)) + " is available for  
use."
CASE 1 : Result$ =gfbserialname(abs(SerialPort%)) + " may be busy  
because Appletalk is active."
CASE 2 : Result$ =gfbserialname(abs(SerialPort%)) + " is busy."
CASE 3 : Result$ =gfbserialname(abs(SerialPort%)) + " Unknown port or  
undefined condition."
END SELECT

END FN = Result$


Is there some other function I should be using to see if the serial  
port is in use?

Rich