Expected '(' or '[' but found...
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com