company logo

DBStructDef :: Inherits - Does type inherit from passed type

The function returns whether the current type is identical or a specialization of the type name passed in sTypeName (true) or not (false). In contrast to basedOn(), the function also returns true, when the type is identical with the type name passed to the function. The function does not check, whether the type name passed is a valid type.

When calling the function with an invalid type definition or when the type definition does not refer to a complex data type, the function throws an exception.

Notes:

Since the function considers synonyms, several elementary types inherit, too (e.g. Date inherits DATE, bool inherits LOGICAL and reverse).

Return value:  Return value ( logical  )

The function returns YES when the question was answered positively. Otherwise it returns NO.

Implementation details

logical DBStructDef  :: Inherits ( NString &strnames )
  • strnames - Type name