Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Convert Types

Different target platforms almost certainly require different data types, so you usually require a method of converting between types. This is offered by the macro:

CONVERT_TYPE (<destinationLanguage>, <originalType>)

This function 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>)

This function converts <originalType> to the corresponding datatypes in <destinationDatabase>, which is defined in the model; <originalType> refers to a platform independent common datatype.