Consultor Eletrônico



Kbase P106504: Is it possible to pass array variable literal values as parameters?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/11/2005
Status: Unverified

GOAL:

Is it possible to pass array variable literal values as parameters?

GOAL:

How to pass arrays variable as parameters?

FACT(s) (Environment):

OpenEdge 10.x

FIX:

It is not possible to pass an array variable literal values as parameters without assigning them first to an array variable. Therefore the following RUN statement will not compile:
RUN Something (INPUT [1;2;3]).
PROCEDURE Something:
DEFINE INPUT PARAMETER someInt AS INTEGER EXTENT 3.
END PROCEDURE.
Starting with OpenEdge 10.x, arrays variables may be passed as parameters. For example, the following RUN statement will compile correctly:
DEFINE VARIABLE iArray AS INTEGER EXTENT 3 NO-UNDO.
RUN Something (INPUT iArray).
PROCEDURE Something:
DEFINE INPUT PARAMETER someInt AS INTEGER EXTENT 3.
END PROCEDURE.