Adding a Return Value to the Method

  1. Go to the Return tab of the Signature Editor.
  2. Activate the Return Value option, if the method is to have a return value.
  3. Specify the data type of the return value.

    Note

    Since ASCET V6.3.0, composite and complex return values are always explicit references, even though they are not marked with the overlay icon .

  4. If you selected an array or matrix of enumeration or record type, Closedthe following happens.

    The Choose a enumeration type or Choose a record type window opens.

    • In the 1 Database/1 Workspace field, select the enumeration or record you want to use, then click OK.
  5. To edit the size of an array or matrix selected as return value, Closeddo the following.

    1. Open the Return menu or the context menu and select Edit Max Size.

      The Max and Variant Size for: <argument> window opens.

    2. In the Max Size x (and Max Size y) field(s), enter the array or matrix size.

    3. To specify a variant size, use the Variant Size x (and Variant Size y) field(s) to select the system constants you want to use as dimension values.

      Both normal and user-defined system constants can be used. The value of a system constant should be in the range 1 ... X (or 1 ... Y).

    4. To specify a variable size, use the Variant Size x (and Variant Size y) field(s) to select *.

      The Max Size x (and Max Size y) field(s) are disabled.

    5. Click OK to close the window and accept your settings.
  6. Type in a comment and a unit.
  7. If you selected an array, matrix, or component as return value, use the Read for Referenced Element and Write for Referenced Element options to set internal access to the referenced element to Read, Write, or both.

See also

Introduction – Variant Size for Arrays and Matrices

Introduction – Variable Size for Arrays and Matrices

Introduction – Explicit References

Introduction – Constants and System Constants

Editing the Signature of a Method or Process