I am trying to have a program that takes a number from the user (from 1 - 12) and it will return that month's short form, eg: if you write 1
it will return JAN
etc.
I have the following:
type Month_Type is (JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC);
but how do I link this to userMonth : Integer;
. I thought something like Month_Type(userMonth) but this didn't work and gave me errors. The only other thing I can think of is to have a loop for each Month_Type and have a counter in there so that it matches. But this seems messy and not very efficient, there must be a better way.