I need to create a dynamic array of DateTime, but I don't know before hand how many dates I will have to add. I did experiment with ArrayList, but it doesn't help.
So, how do you create dynamic array of DateTime in Delphi Prism?
Is this how you do it?
mydates: array of DateTime;
UPDATE 1
I did the following and compiler says that there is no overloaded set_BoldedDates with these parameters."
mydates:ArrayList;
mydates := new ArrayList;
mydates.Add(new DateTime(2012,11,23));
DataCalendar.BoldedDates := mydates; //also I did mydates.ToArray caused error.
The above code only works if I set the mydates as follows:
const
mydates : Array[0..1] of DateTime = [new DateTime(2012,11,23), new Datetime(2012,11,13)];
Thanks,