PC-Dmis 2010 MR2 Object Library | Send comments on this topic. | See Object Hierarchy Chart
WaitUntilExecuted Method
See Also

Collapse All Expand All

Command
  This is an expression that evaluates to a Command object. This is the command that is waited for.

timeout
  This is the number of seconds (a Long value) to wait for the command to finish execution. If you have a non-positive value, the method waits indefinitely.

Arm

# Description

Delays script execution until command is executed

This method waits until the specified Command object executes, or until Timeout seconds pass.

# Syntax

Visual Basic

    Public Function WaitUntilExecuted( _
       ByVal Command As Command, _
       ByVal timeout As Long, _
       ByVal Arm As Long _
    ) As Boolean

# Parameters

Command
  This is an expression that evaluates to a Command object. This is the command that is waited for.
timeout
  This is the number of seconds (a Long value) to wait for the command to finish execution. If you have a non-positive value, the method waits indefinitely.
Arm

# Return Type

Boolean value. This methods immediately returns FALSE if the part program is not executing. It returns TRUE if the specified Command executes before Timeout seconds pass. It returns FALSE if the Command does not execute before Timeout seconds pass. If Timeout is a non-positive value, and the Command never executes, this function never returns a value.

# See Also

PartProgram Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.