Back to product page

ReceiveLine method


Receives line of text, if available

Type

String

Syntax

  • Basic
object.ReceiveLine
The ReceiveLine(object) syntax has these parts:
objectAn expression evaluating to an object of type wodTelnetDLX

Remarks

ReceiveLine method will return full line from the buffer, if one exists. wodTelnetDLX will remove end-of-line markers (vbLf, vbCr and vbCrLf) so you get line of text you don't need to trim or remove such special codes.

If no line can be found in the buffer (but still, data may exist, just not terminated with CR/LF bytes), component will return error 30043 ("None found"). If component returns empty string - it means empty string (terminated with CR/LF bytes) was found and there may be more lines to read.

Unlike Receive method, this method only returns string expression, and cannot return byte array. In Blocking mode, component will wait until Timeout expires to receive full line, if it is not already found in the buffer.

Platforms

Windows