Daylight v4.9
Release Date: 1 February 2008

Object Synopsis

datatype -- an object representing a datatype definition


A datatype object represents the definition of a Datatype in a THOR or Merlin database.

Datatype objects "read-only" objects -- you can query their properties, but you can't change them directly. Each datatype is represented as TDTs in an auxiliary database, and can only be modified by editing the TDT.

Datatype objects are properties of their parent database. They are automatically allocated when the THOR database or Merlin pool object is created, and can't be deallocated, changed, or copied. They are automatically deallocated when the parent database object is deallocated.

A datatype object represents one or more fields, each of which is represented by a fieldtype child object of the datatype object.

You can get all the datatypes associated with a database using dt_stream(db, TYP_DATATYPE).

Related Topics

fieldtype(3ob) dataitem(3ob) database(3ob) pool(3ob)

dt_mer_getnitems(3) dt_setinteger(3) dt_typename(3) dt_tag(3) dt_sethandle(3) dt_integer(3) dt_owner(3) dt_thor_tdtget_raw(3) dt_summary(3) dt_datatype(3) dt_server(3) dt_comments(3) dt_briefname(3) dt_real(3) dt_handle(3) dt_count(3) dt_string(3) dt_setstring(3) dt_setadjunct(3) dt_stream(3) dt_stringvalue(3) dt_membership(3) dt_database(3) dt_boolean(3) dt_setreal(3) dt_proptype(3) dt_dealloc(3) dt_setboolean(3) dt_parent(3) dt_adjunct(3) dt_dfnormdata(3) dt_getdatatype(3) dt_thor_xrefget(3) dt_thor_tdtget(3) dt_type(3) dt_propnames(3) dt_appendstring(3) dt_thor_alloc_dataitem(3)