wonderlander
Instructor
Firstly excuse my none technical stuff where I may use the wrong terminology.
OK I'm doing a Crystal Report that mimic's outlooks "Month View" printout.
I have a grid in the group footer with 35 "boxes" 7 days x 5 weeks.
The grid starts Monday to Sunday.
I have a an array set to allow me to store values into each of these 35 boxes.
I know what day of the week the first of the month is.
I know how many days there are in the month.
What's the tidiest way / easiest way to populate this array?
If we take December as an example it starts on a Wednesday this year and is 31 days long. I therefore wanted to store in the array nothing in positions 1 - 2 and then from the 3rd position I'd store "1" , "2" into the 4th position etc until the 33rd position in which I'd store "31". Hoping this makes sense. I also need to allow for when a month starts on a Sat or Sunday whereby depending on the number of days in the month I may need to store the 30th and 31st in Positions 1 and 2.
Any help would be greatly appreciated!
OK I'm doing a Crystal Report that mimic's outlooks "Month View" printout.
I have a grid in the group footer with 35 "boxes" 7 days x 5 weeks.
The grid starts Monday to Sunday.
I have a an array set to allow me to store values into each of these 35 boxes.
I know what day of the week the first of the month is.
I know how many days there are in the month.
What's the tidiest way / easiest way to populate this array?
If we take December as an example it starts on a Wednesday this year and is 31 days long. I therefore wanted to store in the array nothing in positions 1 - 2 and then from the 3rd position I'd store "1" , "2" into the 4th position etc until the 33rd position in which I'd store "31". Hoping this makes sense. I also need to allow for when a month starts on a Sat or Sunday whereby depending on the number of days in the month I may need to store the 30th and 31st in Positions 1 and 2.
Any help would be greatly appreciated!