From Xojo Documentation

Revision as of 01:25, 30 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TCPSocket.Lookahead([Encoding as TextEncoding]) As String

Supported for all project types and targets.

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


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.


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