Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Compilerswitch "PRO"

In our Project there is a complerswitch "PRO" coming from our point of view from ReportBuilder.

Except in sources of Reportbuilder there is only one place of usage which is

{$IFNDEF PRO}
XXX_PRO,
{$ENDIF}

I can nowhere find any sources of XXX_PRO, but it even compiles. We are using 18.0 on Delphi XE.

Any ideas? Maybe this switch is a remnant from RB 5.56

Comments

  • Hi Carsten,

    The compiler variable "Pro" is an internal variable that should only be used by ReportBuilder. I cannot find anywhere in our current source were we check for {$IFNDEF PRO} so this must be in some altered source of yours.

    However, if it doesn't cause any problems with your application, I wouldn't worry about it :).

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • {$ifdef pro} is used by ppPropEd.pas in RB18.00

    We set it in our project as we (unfortunately by a former developer) made changes to your sources.

    Is this the switch to differentiate betwenn Stand and Pro-Version auf RB?
  • edited December 2018
    Hi Carsten,
    {$ifdef pro} is used by ppPropEd.pas in RB18.00
    Correct, however in your initial post, you claimed that "{IFNDEF PRO}" was in the ReportBuilder source. It is not.

    Is this the switch to differentiate betwenn Stand and Pro-Version auf RB?
    Yes.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi ceider

    It's possible that what appears to be a "PRO" compiler switch originated from an older version of ReportBuilder, such as 5.56. Compiling without issues suggests that it may not be actively utilized in the current version. Review the assigned project thoroughly and consider removing it if there are no related codes or references found. thanks
Sign In or Register to comment.