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.
Visual Basic |
---|
Public Function AddArgument( _ ByVal Position As Long, _ ByVal Argument As String, _ ByVal Name As String, _ ByVal DESCRIPTION As String _ ) As Boolean |
- 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.
Boolean value. This function returns TRUE if the argument was added successfully, FALSE otherwise.
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.