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

SQLBuilder error

edited December 2004 in General
1) Why is it impossible to copy RAP code from the editor on the Calc
tab to the clipboard? This is very inconvenient.

I copied the following code from the on-line help.

procedure ReportOnInitializeParameters(var aCancel: Boolean);
var
SqlBldr: TdaSqlBuilder;
begin
aCancel := False;
SqlBldr := TdaSqlBuilder.Create(Report.DataPipeline);
SqlBldr.Clear;
SqlBldr.SelectTables.Add("Customer');
SqlBldr.SelectFields.AddAllFields;
SqlBldr.SearchFields.AddAutoSearch('Customer', 'Company', 'LIKE',
'S');
SqlBldr.Free;
end;

However, this code produces the following compile error. "Error:
ReportOnInitializeParameters, Line 10: Expected '(' or '[', but found
'SearchFields' instead"

What is wrong with this code?

--
Bill Todd

Comments

  • edited December 2004

    1. SQLBuilder

    Sorry our mistake. Prior to release SearchFields was renamed to
    SearchCriteria, but the example code did not get updated.

    2. RAP Copy/Paste

    The first line of an event-handler is protected text (the gray area). It
    cannot be edited.
    If the selected text contains this line, then cut/copy/paste is not allowed.
    Select the the text below the first line and cut/copy/paste should work.


    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.