SQLBuilder error
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
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
This discussion has been closed.
Comments
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