Output
Outputs/Sends data (Places bytes into the transmit buffer)
Not available at design time. Write only at runtime.
 |
| |
Syntax |
object.Output = value |
| |
|
|
| |
object |
Name of the communications control. |
| |
value |
A String expression containing the characters/bytes to place into the transmit buffer. |
| |
|
|
| |
Example. |
|
| |
|
object.Output = Text1.Text |
'// Places the contents of a text box
'// into the transmit buffer. |
| |
|
|
|
|
 |
Remarks:
Ensure that your transmit buffer is large enough and has enough free space to hold the number of bytes. If you have a lot of data then you might consider splitting the data and repeatedly calling the Output property sending smaller amounts.
Warning - If you attempt to insert too much data into the transmit buffer the data will be truncated. This property does not return an error - but an OnComm comEventTxFull is fired.
Use OutBufferSize - OutBufferCount to calculate the number of free spaces in the output buffer. Although, in most simple applications we would suggest waiting until OutBufferCount is zero before queueing more data.
|