X> Open Port 1,"SER:" For X=0 To 10 Print #1 ,"Greetings from AMOS Professional!" Next X Close 1
PORT
function: test readiness of device
value=Port(channel number)
The PORT function is used to test the status of readiness of the specified channel. If the device is waiting to be read a value of -1 (True) is returned, otherwise zero (False) is given.