Consultor Eletrônico



Kbase P12509: Use of argument {n} causes error (133).
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/4/2005
Status: Unverified

SYMPTOM(s):

** Unmatched quote found in procedure. (133)

Using arguments like this: FOR EACH {1}:

CAUSE:

Procedures that use the {n} argument are not intended to be compiled, these kind of procedures work in some way similar to include files. Progress will compile these procedures each time that they are called using the actual parameters for {1} {2} ... {n} argument.

For example:

/* r-arg1.p */
RUN r-arg2.p "customer" "name"

--------------

/* r-arg2.p */
FOR EACH {1}:
DISPLAY {2}.
END.

Using the previous code as example, when you compile the program r-arg2.p you
will get the error messages because {1} has not value and "FOR EACH :" is
not correct syntactically, therefore the error messages are expected.

FIX:

Use always a 4GL license wherever you intend to run this programs or replace the {n} arguments.