wodFtpDLX ActiveX Control - Blocking Property
      
 

Description

Determines if methods are blocking.


Property type

A Boolean value.  When set to True forces wodFtpDLX to execute methods in blocking manner - waits until method completes


Syntax

object.Blocking [= value]



The Blocking Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodFtpDLX.
value A Boolean value.

Remarks

This property is only available in COM version of the component (wodFtpDLXCom).

Blocking mode is ideal for scripting environments when you cannot use asynchronous connections. Although events are still fired, you can just ignore them and check if error occurred during method execution.

Difference between blocking and non-blocking operation may be shown using Connect method.

If Blocking is set to True, wodFtpDLX will wait until it actually connects with remote server. Once Connected, control will be given back to your program and you can continue with execution of it. If an error is generated, it will be returned immediately.

If Blocking is set to False, wodFtpDLX will immediately return once Connect is called, no matter if it managed to connect with remote server or not (at that particular moment). Later, you should wait for Connected event to be fired to determine if connection is successful or not.