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

Expected '(' or '[' but found...

edited October 2005 in General
Hi,

I am using Report Builder 7.04 and am trying to clear all auto search fields
before the report runs. I am using the following code but when it compiles I
get the 'Expected '(' or '[' but 'FreeAutoSearchFields' instead' message:

Report.FreeAutoSearchFields();

When I try to use properties of Report I don't have any problems. I would
imagine the solution is pretty simple but would appreciate the help.

Cheers

Comments

  • edited October 2005
    Hi Dan,

    Unfortunately the FreeAutoSearchFields routine was not natively included in
    RAP. You do however have access to the AutoSearchFields property which you
    could loop through and remove each field. Another option is to create a RAP
    passthru function that calls the FreeAutoSearchFields from Delphi. See the
    ReportBuilder Developer's Guide for an example of a passthru function.

    ReportBuilder 9 includes the TdaSQLBuilder object that makes the creation,
    manipulation, and deletion of search criteria in RAP very easy. I would
    definitely recommend upgrading your version of ReportBuilder if you plan to
    work further with autosearch in RAP.

    --
    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.