Forum Index > Difference Between SComm1.Output and SComm1.writeString

By: Dannie Myers Posted on: Aug 10 2017 at 02:25:44 PM
In an application I'm working on, the previous developer uses the writeString method to print data a printer. I did not see this method in your list, but I do see an Output method. What is the difference between the two?

By: Guest Posted on: Aug 15 2017 at 11:45:22 AM
WriteString accepts (transmits) a string of characters.

The .Output method is included for compatibility with MSComm32. So, if
OutputModeBinary is set to Binary then Output accepts/transmits an array of Bytes.
OutputMode is set to Text then Output accepts/transmits a string of characters.

By: Guest Posted on: Aug 15 2017 at 11:49:07 AM
Comm64.DLL Version 6.4 includes the WriteString method which, as described above, is a function call that accepts a string of characters and transmits that string.

SComm64 (different file name) doesn't include the WriteString method. Just use the MSComm32 compatible methods. To send a string set the port to OutputMode=Text and then just use the Output method.


Reply - add comment to this topic
You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected
  Topic:- Difference Between SComm1.Output and SComm1.writeString

Your Name


Forum scripts and databases - Copyright (c) 2009 - 2012