You can store this value in a HANDLE variable. You can also use it to associate one widget with another widget or with a system handle. For example, you can assign the HANDLE value of the menu bar to the MENU-BAR attribute of a window, or you can make the window the current window by assigning its HANDLE value to the CURRENT-WINDOW handle.
For query objects, the HANDLE attribute lets you acquire a query object for a static query, as the following fragment demonstrates:
my-query-handle = QUERY q:HANDLE.
The following code fragment uses the HANDLE attribute of a buffer-field to retrieve the buffer-field's handle:
my-buffer-field = city:HANDLE IN BUFFER Customer.
The preceding code fragment requires that you know the name of the field (in this case, "City") at compile time. The following code fragment, which performs the same task, does not require this: