How To…Launch the DADE Query Wizard in Code

Question

“How do I launch the Query Wizard outside the designer as a stand-alone dialog?”

Solution

The query Wizard can be launched separate from the designer and used to generate SQL as a stand-alone dialog. Start by creating a TdaQueryWizardDialog object and assigning it a SQL object to use. Once the dialog has been used and closed, access the SQL object to obtain the generated SQL code.

Download: LaunchQueryWizardViaCode.zip

Delphi code sample: