PC-DMIS 2022.1 Object Library
AddArgument Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
Position
Required Long that indicates the index of the argument to add in the list of arguments.
Argument
Name
Required String that indicates the name of the argument to be added.
DESCRIPTION
Required String that is the description of the argument to be added.
PCDLRN ActiveX DLL > FlowControlCmd Object : AddArgument Method

Glossary Item Box

Description

Adds or replaces an argument in objects of type CALL_SUBROUTINE and START_SUBROUTINE. When used with objects of other types, it has no effect.

Syntax

Visual Basic
Public Function AddArgument( _
   ByVal Position As Long, _
   ByVal Argument As String, _
   ByVal Name As String, _
   ByVal DESCRIPTION As String _
) As Boolean

Parameters

Position
Required Long that indicates the index of the argument to add in the list of arguments.
Argument
Name
Required String that indicates the name of the argument to be added.
DESCRIPTION
Required String that is the description of the argument to be added.

Return Type

Boolean value. This function returns TRUE if the argument was added successfully, FALSE otherwise.

Remarks

When used with objects of type CALL_SUBROUTINE, the Name and Description fields are ignored.

If Position is equal to 1 + FlowControlCmd.NumArguments, an argument is added to the tail of the list of arguments. If Position is between 1 and FlowControlCmd.NumArguments, the current argument is replaced. To completely remove an argument, use DimensionCommand.RemoveArgument.

See Also

Copyright © 2022. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.