Contact Info

Crumbtrail

ActiveXperts.com » Support » Serial Port Component » KB Article

 

Q3800015: I want to send a sequence of non-displayable data to the comport. How can I do this?

Use the WriteByte function. It sends one byte of data to the comport. Usually, you call 'WriteString "ATZ"' to initialize a modem. You can also use the following commands to accomplish this:

obj.WriteByte 97
obj.WriteByte 116
obj.WriteByte 122
obj.WriteByte 13 ' 13 means: vbCr, the carriage character
(viewed: 1878)