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

internal SQL

edited October 2006 in General
We have RB6 and want to move to RB10. I know you can can register your own
QueryDesigner.

Previous developers modified the core RB code, which has caused us to not
upgrade until now. I want to basically inherit everything that has been
changed so we can minimise the effort to upgrade in the future.

My question is this, can you inherit from the SQL classes within the
application? We have added our own date functions and need to have these
built into the final SQL.


Generally can we inherit from most classes? I don't really want to have to
keep bothering someone everytime I find some more custom code.

Regards
Charles

--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited October 2006
    Hi Charles,

    Yes, it is possible to completely replace all of the existing dialogs in
    ReportBuilder (with the exception of the designer). It is definitely
    possible to create your own query designer and replace the native one
    supplied with ReportBuilder. All the query tools descend from the
    TdaCustomDataWizard class.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2006
    Hi Nico,

    Is that the same for TdaSQL and all classes derived from it?


    Regards
    Charles

    --- posted by geoForum on http://delphi.newswhat.com
  • edited October 2006
    Hi Charles,

    Sorry for the misunderstanding.

    The TdaSQL class can be descended from (see TdaMagicSQL) however the amount
    of altered RB code you will be able to reuse is really dependent on which
    code you altered. If you take a look at the TdaSQL class you can see which
    routines can be inherited. If for instance, you changed numerous private or
    non-virtual methods in your previous version of RB, you will need to either
    change them again for the new version of RB, or find a way to use the
    virtual methods in TdaSQL to achieve what you need.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.