Adding an Argument to the Method
- Open the signature editor for the method.
- In the Signature Editor, go to the Arguments tab.
Do one of the following:
The new argument is added to the Arguments list with its name highlighted for in-place editing.
- Name the argument and press <Enter>.
Specify the type of argument by selecting the value you want from the Argument Type combo box.
The default argument type is cont.
Note
Since ASCET V6.3.0, composite and complex arguments are always explicit references, even though they are not marked with the overlay icon
.In offline experiments, methods with composite arguments, i.e. array, matrix or component arguments, do not appear in the event generator. No event can be created for them, and they cannot be accessed during the offline experiment.
If you selected an array or matrix of enumeration or record type,
the following happens.To edit the size of an array or matrix argument,
do the following.Enter a unit for the argument in the Unit box.
The unit is purely descriptive and does not influence the functionality of the class.
Type a comment relating to the argument into the Comment box.
Every argument or return value can have a comment associated with it. This comment is displayed when documentation for the component is generated.
In the Direction combo box, select a direction for the argument.
In – the argument can be read in the method; Out – the argument can be written in the method; InOut – the argument can be read and written in the method. See also Directions of Method Arguments.
If the argument is of type array, matrix, or component, the selection in the Direction combo box also determines internal access to the referenced element: In – read access; Out – write access; InOut – read and write access.
See also
Variant Size for Arrays and Matrices
Variable Size for Arrays and Matrices
Constants and System Constants
Directions of Method Arguments
Editing Arguments and Local Variables
