Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2023.2 Object Library
PCDLRN ActiveX DLL > PartProgram Object : WaitUntilExecuted Method
This is an expression that evaluates to a Command object. This is the command that is waited for.
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.
WaitUntilExecuted Method
Description

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 measurement routine 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