Built-in forms_ddl is used to execute DDL commands using forms.
Use FORM_SUCCESS boolean function to check whether the DDL command is executed correctly or not.
Syntax
forms_ddl ( 'DDL command');
Example
Open the form builder tool Create new data block manually.
In the property palette
Name BLK1 Database
Database Data Block No
Create canvas, In the property palette
Name CNV1
Go the layout editor of the canvas (F2)
Place a button on the canvas. In the property palette of the button
General
Name B1
Functional
Label CLICK HERE
Create trigger WHEN-BUTTON-PRESSED for the button and provide the following code and compile