From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use SerialConnection.BytesAvailable as a replacement.
Read-Only Property (As Integer )
The number of bytes of data are available in the internal receive buffer.
Classes implementing the BytesAvailable property
|Serial||New in 2005r1|
TextField1.Text = Str(Me.BytesAvailable)