Book a Demo

Author Topic: CONVERT_TYPE  (Read 3721 times)

thomaskilian

  • Guest
CONVERT_TYPE
« on: February 28, 2006, 04:54:57 am »
Can someone please tell me, what this macro will convert into what? The help just tells me that
Quote
Will convert <originalType>, to the corresponding type in <destinationLanguage> using the datatypes and common types defined in the model.
(almost) full stop
Do I have to guess and try?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: CONVERT_TYPE
« Reply #1 on: February 28, 2006, 01:14:23 pm »
I thought that there had been a good discussion about this on the forum at some point, but if there was I can't find it.  :-/ The best that I did find was this very insightful post that gets to exactly what it is meant to do, and the current problems with it.  Now, I thought I had replied to this post (I must be going crazy because it's the second post in two days that I have very clear memories of replying to that haven't been replied to.  :-[)

My post here may also be of some interest.

So, after that rambling, the answer to your question is to look at the language datatypes table.  Each datatype has a common type, and this macro converts from a common type, to a language datatype that matches that common type.  To get the most out of that you'll need to customize the common types and create a platform independant language containing the datatypes used as common types in your target languages.

thomaskilian

  • Guest
Re: CONVERT_TYPE
« Reply #2 on: March 01, 2006, 05:51:36 am »
Hi Simon,
we all are getting older ;D

I also found the table when explicitely searching for "MEDIUMINT" in the contents of EA's program directory - after having wrapped the EA.EXE with my notepad++ ::)