-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad DEFINED function in &IF preprocessor condition #55
Comments
HI, I add another example where a simple ADM2 SmartdataObject generates the same error.
|
… is used inside the name checked by DEFINED() function. e.g. &if defined(i_tt{&prefix}companydata{&suffix}) = 0 &then &IF DEFINED(OPEN-QUERY-{&QUERY-NAME}) NE 0 &THEN
…when the preprocessor variable is used inside the name checked by DEFINED() function. e.g. &if defined(i_tt{&prefix}companydata{&suffix}) = 0 &then &IF DEFINED(OPEN-QUERY-{&QUERY-NAME}) NE 0 &THEN#55 fix parsing of cases when the preprocessor variable is used inside the name checked by DEFINED() function. e.g. &if defined(i_tt{&prefix}companydata{&suffix}) = 0 &then &IF DEFINED(OPEN-QUERY-{&QUERY-NAME}) NE 0 &THEN
Hi,
We have the following structure in many include files, to make sure that definition of temp-table is included only once.
&if defined(i_tt{&prefix}companydata{&suffix}) = 0 &then
&global-define i_tt{&prefix}companydata{&suffix} yes
define temp-table tt{&prefix}CompanyData{&suffix} ...
&endif
When parsing the .p file we get this error:
Bad DEFINED function in &IF preprocessor condition
I'm using proparse.dll version 4.1.0.1219.
Please fix it if possible.
The complete error stack is:
An example can be found in attachment below.
Bad_DEFINED_function.zip
Thank you!
The text was updated successfully, but these errors were encountered: