Event Property Sheet Parameters Tab

The Parameters tab lists all the parameters associated with the event. It allows you to define event parameters that correspond to the event signature.

You can add a parameter in the list by clicking the Add a Row tool, and then open its property sheet by clicking on the Properties tool. A parameter has the following properties:

Property

Description

Parent

Event to which the parameter belongs

Name

Name of the parameter

Code

Reference name of the parameter

Comment

Descriptive comment for the parameter

Data type

Set of instances sharing the same semantics

Array

When selected, indicates that the data type is a table format

Parameter Type

Direction of information flow for the parameter. Indicates what is returned when the parameter is called by the event during the execution process. You can choose from the following:


  • In – Input parameter passed by value. The final value can not be modified and information is not available to the caller

  • In/Out – Input parameter that may be modified. The final value may be modified to communicate information to the caller

  • Out – Output parameter. The final value may be modified to communicate information to the caller

Default value

Default value when a parameter is omitted. For example:

Use an operation oper(string param1, integer param2), and specify two arguments oper(val1, val2) during invocation. Some languages, like C++, allow you to define a default value that is then memorized when the parameter is omitted during invocation.

If the declaration of the method is oper(string param1, integer param2 = default), then the invocation oper(val1) is similar to oper(val1, default).


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com