Daylight v4.9
Release Date: 1 February 2008


dt_database - find the database of an object

Generic Prototype

dt_database(dt_Handle) => dt_Handle

C Prototype

#include "dt_thor.h"

dt_Handle dt_database(dt_Handle object)

FORTRAN Prototype

include ''

integer*4 dt_f_database(object)

integer*4 object


Finds the database which is the ultimate 'ancestor' of the object. For example, dt_database(tdt) is equivalent to dt_parent(tdt), but dt_database(fieldtype) is equivalent to dt_parent(dt_parent(fieldtype)).

Return Value

Returns a database object. Objects without databases as ancestors have this property defined as NULL_OB.

Related Topics

dt_exists(3) dt_parent(3) dt_server(3)