Advanced COM Execute
Execute method

Requests execution of a routine in the thread's script. The execution continues after the method returns.

Syntax:

variable = object.Execute(routine[, wait])

Arguments

routine - String. The name of the routine to be executed.

wait - Positive integer. The timeout in milliseconds to wait if the thread is busy.

Returned value: Boolean. If the execution has been started it is True, if not it is False. If the Wait is not omitted and greater then 0 the method will wait the thread to complete current operation and then execute this one. If the previous execution is not complete within the specified timeout it returns False. 

Examples:


        

Remarks:

The thread must be started. In other words the script must be initialized previously with the Start method. If it is not started the Execute will return False.

Applies to: COMScriptThread object

See also: Start

newObjects Copyright 2001-2006 newObjects [ ]