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

Collapse All Expand All

tog

catch_error
  A reference to the integer that will be set to a non-zero value if a CMM error occurs. When error catching is turned on, this integer is automatically initialized to zero. Only used when tog is set to PCD_CATCH_IN_INTEGER.

# Description

Turns On/Off Catching of CMM motion errors

# Syntax

Visual Basic

    Public Sub CatchMotionError( _
       ByVal tog As CATCHTYPE, _
       ByRef catch_error As Long _
    )

# Parameters

tog

  Value | Description
  --- | ---
  PCD__OFF | Turns off error catching. The basic script will no longer be notified when motion errors occur.
  PCD_CATCH_IN_INTEGER | All subsequent motion errors will cause the integer passed by reference as the catch_error parameter to be set to a non-zero value.
  PCD_TRIGGER_ERROR | All subsequent motion errors will generate runtime error 1001. These error may be caught using the On Error statement.

catch_error
  A reference to the integer that will be set to a non-zero value if a CMM error occurs. When error catching is turned on, this integer is automatically initialized to zero. Only used when tog is set to PCD_CATCH_IN_INTEGER.

# See Also

OldBasic Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.