Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when inputting ASCII text from COM port
#5
(01-23-2024, 05:55 PM)MichelleL Wrote: I will confess, I have never used a SUB or a FUNCTION (MBASIC & GW_BASIC mostly), so I guess I need to noodle out how to put this into one of them, and stick it somewhere... Oh well, the learning never stops. Smile


[Image: Untitled.jpg]
Sorry, this came from a function I've created that also processed the bytes received.
You can delete that Static line

Use of function:
Code: (Select All)

serialin$ = checkSerial$()


Function checkSerial$()
  receivedBytes$ = ""
  Dim As String * 1 byte
  Do While Loc(1) <> 0
    Get #1, , byte
    receivedBytes$ = receivedBytes$ + byte
  Loop
  checkSerial$ = receivedBytes$
End Function
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Reply


Messages In This Thread
RE: Error when inputting ASCII text from COM port - by mdijkens - 01-23-2024, 07:16 PM



Users browsing this thread: 3 Guest(s)