function handle-type (arg-1)  | 
$handle-type (arg-1)  | 
78  handle-is-invalid                            value 0. 78  handle-of-window                             value 1. 78  handle-of-subwindow                          value 2. 78  handle-of-font                               value 3. 78  handle-of-thread                             value 4. 78  handle-of-menu                               value 5. 78  handle-of-control                            value 6. 78  handle-of-bitmap                             value 7. 78  handle-is-unknown                            value 9.  | 
working-storage section. 77 my-handle usage handle. ... procedure division. ... if function handle-type(my-handle) = 0    display "my-handle points to nothing!" end-if.  |