NON-COMPOSITE data types have no reference to other data types
(A list of possible values)
A list of prescribed values are created for this user-defined data type, which is defined by the user. An object of that datatype can then be declared and assigned on of those prescribed values. Much in the same way an INTEGER datatype must be a number from 0 to the largest recognised by the language, a STRING must be a character in the UNICODE acceptable list, so must a USER-DEFINED data type be within the user-defined list of prescribed values.
TYPE
TDirections = (North, East, South, West)
TDays = (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday )
Enumerated values are ORDINAL meaning they have a specific order.
(REFERENCES a specific memory location)
DECLARE MyPointer : TMyPointer
TYPE
TMyPointer = ^<Type Name>
This is the most useful and widely used data type.
TYPE
YEmployeeRecord
DECLARE EmployeeFirstName : STRING
DECLARE EmployeeFamilyName : STRING
DECLARE DateEmployed : STRING
DECLARE Salary : CURRENCY
ENDTYPE
accesing a record data type:
MATHEMATICAL OPERATIONS ON A SET OF DATA