Back to product page

StateChange event


Fires when wodHttpDLX changes its state.

Syntax

  • Basic
Private Sub object_StateChange(OldState)
The StateChange(object,OldState) syntax has these parts:
objectA wodHttpDLX object.
OldStateA HttpStates enumeration, as described in settings. Holds previous state.

Remarks

The settings for value are:

Constant Value Description
StateNotConnected0 Not connected.
StateConnecting 1 Connecting to server.
StateConnected2 Connected - idle.
StateSendingHeaders 3 Sending Headers data.
StateSendingBody4 Sending body data.
StateWaitingResponse 5 Waiting for response from the server.
StateReceivingHeaders6 Receiving Headers data.
StateReceivingBody 7 Receiving body data.
StateDisconnecting8 Disconnecting.


This event is fired every time the wodHttpDLX control changes the current operation that it is performing. Even though most of these operations also result in firing other events, the user can monitor this event to see the reason for an operation's completing unsuccessfully, or can ignore other events and take appropriate action depending on the wodHttpDLX.State value. Refer also to the here for a list of possible states.

If AutoRedirect property is set to True, it is possible that wodHttpDLX sends more than one request based on your URL. This depends purely on server's responses. In such cases, state changes may vary and may look as 'out of sequence'.

Platforms

Windows