Advanced COM Wait method
Wait method

Waits current method execution initiated with a call to the Execute method to complete.

Syntax:

variable = object.Wait( timeout)

Parameters:

timeout - Maximum timeout period in milliseconds. If the execution does not complete within the specified period False is returned. 0 or positive number specifies timeout, negative parameter specifies infinite limit.

returned value: True if the execution completed during the allowed timeout and False if the time limit is reached before the completion.

Remarks:

This method is used for synchronization when the invoker needs the result(s) of the work done in the thread at some point. 

If you want to just check (not wait) the status of the last execution you can use 0 for timeout or the Busy property.

Applies to: COMthread object

newObjects Copyright 2001-2006 newObjects [ ]