Hello,
We have declared a constant in .pas file in App_code folder.while referencing the values declared in .pas file in App_code folder from aspx.pas file we are running into ‘Unknown Identifier for Constant Variable’ error.
We reference RTS_Types.pas by using the command ‘uses RTS_Types’ in one of our aspx.pas pages.Now, while building our application, we are running into below issue:
thank you for the additional information. Can I see how RTS_Types.pas looks and how the constant is defined? is it marked public? ASP.NET compiles different parts of the site to different .dlls/projects, so global members that are not ,marked public might not be available everywhere.
Also note that uses works on namespaces, not file names. the name in the use scales must match what you have at the top of RTS_Types.pas after the namespace keyword (whether that matches the file name tis entirely coincidental).