03-30-2025, 01:59 AM
(03-30-2025, 01:52 AM)Pete Wrote: What is 'd' defined as? QB64 displays values in SN when the value exceeds the limits of the variable type. You assigned a as an unassigned byte, so I would think you need to do the same with d, although I don't see why you are not just using 'a' here. I know, we're experimenting to find an answer. All I can think of is a time-out routine so if the packet of bytes is no longer growing in size, then force an exit to the next routine.
Dim d As _Unsigned _Byte ' Put at top of routine.
GET #1 ,, d
Pete
Sorry, I was blabbering. When the variable is defined as '_unsigned _byte' it returns the corresponding ascii number for the character.
The problem is I have no way to see when to read data and if I read it when the buffer is empty the program sits and waits.

