:SetLineMode()


Class

     aprPOP()

 

Syntax

     :SetLineMode( nMode, [hSession] ) -> lSuccess

 

Parameters

 

nMode

Line mode. See table below.

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

Return

Logical indicating Success.

Returns .T. if the operation succeeds, otherwise returns .F.

To get more information about the error, see :nErr and :cErr.

 

Description

The :SetLineMode() method sets the value of the line mode.

 

  

Bitmask specifying the current line mode.

The bitmask is created by combining one or more of the following options:

 

POP_MODE_LINEBREAK

This option specifies that data returned from the server should be terminated on receipt of an end-of-line character sequence. This enables an application to easily read the contents of a header or message in a "line by line" mode.

 

POP_MODE_BINARY

This option specifies that the server may return 8-bit binary data. By default, the client will ignore data that contains non-printable control characters or characters with the high bit set.

 

 

See Also

:GetLineMode(), :Read()