putByte
Outputs/Sends one byte of data (Places one Byte into the transmit buffer) and returns true or false depending on success or failure.
Not available at design time. Write only at runtime.
Only available with Comm32 - Not available with MSComm32
 |
| |
Syntax |
result = object.putByte(value) |
| |
|
|
| |
object |
Name of the communications control. |
| |
result |
Boolean return value. true or false. Will be false if the byte could not be moved into the transmit buffer (ie if the buffer was full) |
| |
|
|
| |
Example. |
|
| |
|
Dim i as Byte
For i = 1 to 20
If Comm1.putByte( i ) = False Then
'// no more room in tx buffer
Exit For
End If
Next i
'// This example will attempt to send the values 1 to 20
'// This function sends the byte as a raw byte value. Not as a string/character. Use this function to send byte values in the range 0 to 255
You do NOT need to change the OutputMode property. The putByte function ALWAYS sends the raw byte value. |
|
| |
|
|
|
|
 |
|