control characters as follows . . .
Code:
>>> CallBack Function Send_Callback() As Long >>> Comm Send #hComm, Chr$(&H41) 'A >>> Comm Send #hComm, Chr$(&H42) 'B >>> Comm Send #hComm, Chr$(&H43) 'C >>> Comm Send #hComm, Chr$(&H44) 'D >>> Comm Send #hComm, Chr$(&H45) 'E >>> Comm Send #hComm, Chr$(&H46) 'F >>> Comm Send #hComm, Chr$(&H47) 'G >>> Comm Send #hComm, Chr$(&H48) 'H >>> Comm Send #hComm, Chr$(&H49) 'I >>> Comm Send #hComm, Chr$(&H4A) 'J >>> Comm Send #hComm, Chr$(&H4B) 'K >>> Comm Send #hComm, Chr$(&H4C) 'L >>> Function = %True >>> End Function
(or 11th or 13th); but I am willing to accept that it has something to do with the warning in the PowerBasic help
files concerning 'COMM SEND' which states:
"Be careful when using fixed length strings, as trailing padding in the string may give unexpected results in your
data flow. This is especially true is you are performing a binary file transfer through the serial port, the
padding bytes will produce a binary file at the “remote end” with interspersed spaces. Also, avoid using ASCIIZ
strings with binary data, as the first embedded zero byte will cause the data sent to the serial port to be
prematurely truncated, due to zero-byte termination of such strings".
Thanks for responding Lance. I apologize for posing a question to the forum after having worked for 17 hours
straight without first getting some sleep and pondering things longer.
Wesley Brown

------------------
Leave a comment: