Convert Types

Different target platforms almost certainly require different types, so you often require a method of converting between types. The following macro offers this.

  • CONVERT_TYPE(<destinationLanguage>, <originalType>) - Converts <originalType> to the corresponding type in <destinationLanguage> using the datatypes and common types defined in the model, where <originalType> is assumed to be a platform independent common type.

A similar macro is available when transforming common datatypes to the datatypes for a specified database.

  • CONVERT_DB_TYPE(<destinationDatabase>, <originalType>) - Converts <originalType> to the corresponding datatypes in <destinationDatabase>, which is defined in the model. The <originalType> refers to a platform independent common datatype.