getByte
Gets one byte of data from the receive buffer and returns true or false depending on success or failure.
Not available at design time. Read only at runtime.
Only available with Comm32 - Not available with MSComm32
 |
| |
Syntax |
result = object.getByte(value) |
| |
|
|
| |
object |
Name of the communications control. |
| |
result |
Boolean return value. true or false. Will be false if a byte could not be read from the receive buffer (ie if the buffer was empty) |
| |
|
|
| |
Example. |
|
| |
|
Dim b as Byte
If Comm1.getByte( b ) = True Then
'// b contains the byte that was read
Else
'// No data was read - buffer was empty
End If
'// This example will attempt to read one byte from the receive buffer. This function retreives the byte as a numeric byte value. Not as a string/character. Use this function to read/receive byte values in the range 0 to 255
You do NOT need to change the OutputMode property. The getByte function ALWAYS reads a numeric byte value. |
|
| |
|
|
|
|
 |
|