1.7. Quick Start Guide for VCL edition (Delphi)
Place the TacQueryBuilder component on the form.
Place required metadata and syntax provider components on the form. Define database connection for the metadata provider.
Link the components above to the TacQueryBuilder by setting MetadataProvider and SyntaxProvider properties
Place the TacSQLBuilderPlainText component on the form to get SQL code generated by the Query Builder with formatting. Link it to the TacQueryBuilder component by setting it's QueryBuilder property.
Add the TMemo or any other text editing component (for example, TSynEdit) to a form.
Now you should establish connection between the TacSQLBuilderPlainText and the TMemo components.
Enter the following code to OnExit event of TMemo component:
acQueryBuilder1.SQL := Memo1.Text;
Enter the following code to OnSQLUpdated event of TacSQLBuilder component:
Memo1.Text := acSQLBuilderPlainText1.SQL;
- Execute the following code to load metadata and activate Active Query Builder:
That's all! Now you can run your application.
Don't forget to activate your database connection component.