Amos Professional Manual  Contents  Index

Accessing a Printer


This example would print out ten lines via the device connected to the Amiga's RS232 port:
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.

Back    Next
10.03.07