Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : LAST-CHILD attribute

LAST-CHILD attribute

The handle of the last widget created in the container widget or the current session.
Data type: HANDLE
Access: Read-only
Applies to: DIALOG-BOX widget, FIELD-GROUP widget, FRAME widget, MENU widget, SESSION system handle, SUB-MENU widget, WINDOW widget
You can use the LAST-CHILD option to find the last entry in a list of all frames and dialog boxes in a window, all field groups in a frame or dialog box, all widgets in a field group, all menu items in a menu or submenu, or all windows in an ABL session (SESSION system handle). After finding the last entry, you can find the remaining entries in the list by using each widget's PREV-SIBLING attribute.