Serial.LookAhead
From Xojo Documentation
This item was deprecated in version 2019r2. Please use SerialConnection.LookAhead as a replacement. |
Method
Returns all the unread characters in the buffer without deleting them from the buffer. The optional Encoding parameter enables you to specify the text encoding of the data to be returned. Use the Encodings module to specify a text encoding.
Example
This example stores the lookahead text in a TextField.
TextField1.Text = Serial1.LookAhead(Encodings.UTF8)