Defining parameters

Defining parameters

A parameter is a specification of a variable that can be changed, passed, or returned. Parameters are used only for operations.

A parameter always has a direction, which indicates the flow of information.

Parameter properties

A parameter has the following properties:

Property

Description

Parent

Operation to which the parameter belongs to

 

 

Name

Name of the parameter

 

 

Code

Reference name for the parameter

 

 

Comment

Descriptive comment for the parameter

 

 

Data Type

Set of instances that share the same operations,

 

abstract attributes, and relationships, and semantics

 

 

Array

Used in generating and reverse engineering for Java

 

and PowerBuilder. When selected, arranges attributes

 

into table format

 

 

Parameter

Direction of information flow of the parameter

Type

 

 

 

Maximum length

254

254

254

254

Direction

The choice you make in the Direction dropdown listbox indicates what value

 

is returned when the parameter is called by the operation during the execution

 

process.

 

You can set the following values for the direction:

Value

In

In\Out

Out

Description

Input parameter passed by value. The final value may not be modified and information is not available to the caller

Input parameter that may be modified. The final value may be modified to communicate information to the caller

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

88

Page 98
Image 98
Sybase 7.5 manual Defining parameters, Parameter properties, Direction