why Appbuilder adds illegal statements to my file

plant

New Member
Hi,

Why Appbuilder(v9.1b) adds something which Progress compilor
does not recognize

If I create a internal procedure called "calculate_price", using Appbuilder(v9.1b)

After I save the file, and try to compile the file, it generates error
** Unable to understand after -- "DEFINED".

After openning the file in a text editor, I found a line automatically
added to the file.

The line is this: &IF DEFINED(EXCLUDE-calculate_price) = 0 &THEN


-------- The procedure look like this ------
&IF DEFINED(EXCLUDE-calculate_price) = 0 &THEN
PROCEDURE calculate_price:
/* procedure definition */
END PROCEDURE.
&ENDIF
---------------------------------------------------------------------
 

jongpau

Member
Hi,

I cannot see anything wrong with what Progress has placed in your code. Just paste it in the Procedure editor and do a check-syntax, which should tell you it's all OK. Are you sure there's nothing ABOVE the internal procedure declaration that makes Progress not "understand" the code?
 

plant

New Member
Thanks

If I remove lines using a text editor:
"&IF DEFINED(EXCLUDE-calculate_price) = 0 &THEN"
"&ENDIF",

The progam is compiled perfectly. I guess that the compiler does not accept "EXCLUDE-calculate_price" .

Regards,
 
Top