wodPop3 ActiveX Control - StateChange Method
      
 

Description

Called when wodPOP3 component changes its state.


Return Type

None  


Syntax

object.StateChange Owner, OldState



The StateChange Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodPopClientNotify.
Owner Required. A wodPop3 object. Reference to wodPop3 component instance that called this method.
OldState Required. A StatesEnum enumeration, as described in settings.

Holds previous state.


Settings

The settings for OldState are:

Constant Value Description
 Disconnected 0 Disconnected from server.
 Connecting 1 Connecting to server.
 LogonInProgress 2 Sending login information.
 ReadingMessageList 3 Receiving message list from the server.
 Connected 4 Connected to server - idle.
 ExecutingCommand 5 Executing command on the server.
 ReceivingMessage 6 Receiving message from the server.
 DeletingMessage 7 Deleting message from the server.

Remarks

NOTE: This method is called only if you implemented IwodPop3ClientNotify interface in your application, and wodPop3.Notification property has received reference to instance of your implementation.

StateChange notification method is called by wodPop3 when its state changes, from Disconnected to Connecting, then to LogonInProgress etc.

To get current state you can use State property. To get text description of the state, you can use StateText property.

For list of all possible states, click here.