Previous Next

HANDLE attribute
A handle to the object.
Data type:
Access:
Applies to:
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:
 
my-buffer = BUFFER Customer:HANDLE
my-buffer-field = my-buffer:BUFFER-FIELD("City").
The value of a the HANDLE attribute is guaranteed to be unique among the HANDLE attributes for all object instances in an ABL session.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.