DELETE WIDGET-POOL statement
- Last Updated: October 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Deletes a defined widget pool, automatically deleting all widgets in the pool.
Note: Does not apply to SpeedScript programming.
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 or class-based method.
- NO-ERROR
- The NO-ERROR option is used to prevent the statement from raising
ERRORand displaying error messages.
Example
The 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.
r-widpl.p
|
Notes
- If you do not delete a non-persistent widget pool, it is deleted when the procedure or method 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 or method within the same process can access that widget pool. If
you try to delete a named widget pool that does not exist, the AVM raises the
ERRORcondition.
See also
CREATE WIDGET-POOL statement, DELETE WIDGET statement, NO-ERROR option