PreviousNextIndex

Parameter definition syntax

Defines one or more run-time parameters for a user-defined function, a class method (including a constructor), or a class event defined with an ABL method signature. ABL implements both scalar and array parameters for user-defined functions and methods of a class as NO-UNDO variables.

Syntax

( parameter [ , parameter ] ... ) 

Note: To define run-time parameters for an ABL procedure, Windows dynamic link library (DLL) routine, UNIX shared library routine, or ActiveX control event procedure, see the DEFINE PARAMETER statement reference entry.

Use the following syntax to define each parameter, which can be a primitive, array, class, interface, temp-table, ProDataSet, or buffer:

Syntax
{ INPUT | OUTPUT | INPUT-OUTPUT }  
{   parameter-name AS { primitive-type-name | [ CLASS ] object-type-name } 
      [ EXTENT [ constant ] ]  
  | TABLE temp-table-name [ APPEND ] [ BIND ] [ BY-VALUE ] 
  | TABLE-HANDLE temp-table-handle [ APPEND ] [ BIND ] [ BY-VALUE ] 
  | DATASET dataset-name [ APPEND ] [ BIND ] [ BY-VALUE ] 
  | DATASET-HANDLE dataset-handle [ APPEND ] [ BIND ] [ BY-VALUE ] 
} 

BUFFER buffer-name FOR database-table-name [ PRESELECT ] 

INPUT | OUTPUT | INPUT-OUTPUT
parameter-name
AS primitive-type-name
AS [ CLASS ] { object-type-name }
object-type-name
CLASS
EXTENT [ constant ]
TABLE temp-table-name
TABLE-HANDLE temp-table-handle
DATASET dataset-name
DATASET-HANDLE dataset-handle
APPEND
BIND
BY-VALUE
BUFFER buffer-name FOR database-table-name [ PRESELECT ]
Notes
See also

CONSTRUCTOR statement, DEFINE EVENT statement, FUNCTION statement, METHOD statement, Parameter passing syntax, SUPER function, Type-name syntax, USING statement


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex