We will now take a look at the different kind of datatypes you can use in AX. They can be separated into two main groups:
Primitive datatypes are the building blocks of the programming language. They are used to store a single value based on the type in runtime code. The values that can be stored for each datatype varies depending on the datatype that is used. If you want to store a text string, you can use the string datatype. If you want to store a date value, you can use the
date datatype or perhaps
utcdatetime. You can also use the datatype
anytype if the type of data read into the variable is decided at runtime.
In the next chapter, we will create extended datatypes and see ...