Online Documentation for SQL Manager for DB2

Adding dialog form


To add a dialog form, select the File | New Dialog main menu item in Report Designer.

 

The new dialog appears within the DialogPage1 tab of the designer. Use the available RAD tools to add necessary interface elements to the dialog.

 

Report Designer - Adding dialog form

 

 

To call the dialog, proceed to the Code tab and supply the corresponding statement, e.g.

begin

DialogPage1.ShowModal;

end.

 

Using the Language drop-down list you can select the script language to be used for the event handler: PascalScript (by default), C++Script, BasicScript, Jscript.

 

For instance, the following C++ Script code can be used as the handler for the OnClick event of the 'Show' button to open ZeosDB2Query:

{

ZeosDB2Query1.Active = true;

}