Consultor Eletrônico



Kbase P117743: Error 201 and 198 with include file arguments
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   03/08/2006
Status: Unverified

SYMPTOM(s):

Error 201 and 198 with include file arguments

** Unknown Field or Variable name - <field-name>. (201)


** Unknown Field or Variable name - b". (201)

** <program> Could not understand line <number>. (196)


Missing include file arguments results in error 201.


Missing a reference to argument "&abc" in temp_b.i results in error 201. For example:

/* temp_a.p */
{temp_b.i &abc="zzz"}

/* temp_b.i */
{temp_c.i &def="{&ghi}"}

/* temp_c.i */
message "a" " {&def} " "b".

CAUSE:


There is a difference between how the compiler deals with double quotes and single quotes when used with arguments.

FIX:

There are several ways to resolve this problem.

The documentation ("Language Reference") says:
"if you use double quotes around arguments in an argument list, Progress removes them. To pass one set of double quotes you must use four sets of double quotes".
So if ""{&ghi}"" is used this corrects the problem.

Alternatively, remove the quotes around the &ghi argument, or replace them with single quotes.