Klaus F. Ãstergaard wrote:
Can anybody help my with how to make this declaration.
I want to make an array as a constant:
I have been looking in the extended Pascal ISO standard, and found some = thing like this:
type t = array [1..3] of integer; const c = t[1:1, 2:2, 3:3];
What I want is a constant called DaysInMonth[0..1, 1..12] with = containing the number of days in the particular month, the first 0..1 is = wheater it is a leap year or not.
Side note: You are aware that there is already a MonthLength function?
Frank