IPCSocket.LookAhead

From Xojo Documentation

Method

IPCSocket.LookAhead(Encoding as TextEncoding = Nil)

Supported for all project types and targets.

Returns a String, containing the data that is available in the internal queue without removing it.

Notes

The optional Encoding parameter enables you to specify the text encoding of the data to be returned. The default is Nil. Use the Encodings module to specify an encoding.

Example

This example adds the contents of the internal queue to a TextArea. The Listener IPCSocket has been added to the window.

TextArea1.AppendText(listener.Lookahead)