home *** CD-ROM | disk | FTP | other *** search
- ' SioError.bas
-
- Option Explicit
-
- Sub SioError (X As Form,ByVal Code As Integer)
- Select Case Code
- Case 0: X.Print "No error"
- Case -1: X.Print "Timeout waiting for I/O"
- Case -2: X.Print "Port not enabled. Call SioReset first"
- Case -3: X.Print "No buffer available. Call SioRxBuf & SioTxBuf first"
- Case -4: X.Print "No such port. Expect COM1 to COM20"
- Case -5: X.Print "Expect ASC(""S""), ASC(""C""), or ASC(""R"") as 2nd argument"
- Case -6: X.Print "Expect ASC(""A""), ASC(""C""), or ASC(""D"") as 2nd argument"
- Case -7: X.Print "Bad parity code specified. Expected 0 to 7"
- Case -8: X.Print "Bad stop bits code specified. Expected 0 or 1"
- Case -9: X.Print "Bad word length code specified. Expected 0 to 3"
- Case -10: X.Print "Bad buffer size code specified. Expected 0 to 11"
- Case -11: X.Print "Bad baud rate code. Expected 0 to 9"
- Case -12: X.Print "Loopback test fails"
- Case -13: X.Print "UART undefined"
- Case -14: X.Print "Missing or bad UART"
- Case -15: X.Print "Port already enabled"
- Case -16: X.Print "ISR (interrupt service routine) already in use"
- Case -17: X.Print "No such IRQ. Should be 2 to 15"
- Case -18: X.Print "ISR limit (maximum of 4 PC IRQs) exceeded"
- End Select
- End Sub
-
-