Progress
Language Reference
DELETE WIDGET-POOL Statement
Deletes a defined widget pool.
SYNTAX
pool-name
The name of a defined dynamic widget pool. If you omit pool-name, the statement deletes the unnamed pool most recently created in the current or a calling procedure.
NO-ERROR
Suppresses error messages if the specified widget pool does not exist. You can then test for the ERROR condition to verify that the widget pool does not exist.
EXAMPLEThe following example creates a named widget pool and lets you add buttons to it. When you choose Delete Buttons, the widget pool is deleted. (Therefore all the buttons in the pool are also deleted.) Similarly, when you choose Quit to exit the procedure the widget pool is also deleted. Because the pool is persistent, it remains allocated for the rest of your session if you do not delete it.
NOTES
- When you delete a widget pool, all widgets in that pool are automatically deleted.
- If you do not delete a non-persistent widget pool, it is deleted when the procedure that created it ends. If you do not delete a persistent widget pool, it is deleted when the session ends.
- All named widget pools are globally scoped. While a named widget pool is allocated, any procedure within the same process can access that widget pool. If you try to delete a named widget pool that does not exist, Progress raises the ERROR condition.
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |