SerialConnection.LookAhead
From Xojo Documentation
Method
SerialConnection.LookAhead([Encoding as TextEncoding ]) As String
Supported for all project types and targets.
Supported for all project types and targets.
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.Value = SerialConnection1.LookAhead(Encodings.UTF8)