Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling MCN_GETDAYSTATE from month calendar
Message
From
06/06/2008 19:24:19
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01321939
Message ID:
01322226
Views:
20
>Hi Carlos,
>
>I would store AnuallyBoldedDates and MonthlyBoldedDates as an array/collection and also MONTHDAYSTATE values using _Access/_Assign. This way you'll have only build MONTHDAYSTATE when values change which'll happen less often compare to the number of calls to bold dates.
>I'm not sure if you can optimize storage of BoldedDates.
>
>
Sergey:

Thank you for your suggestions. I managed it with arrays for AnuallyBoldedDates, MonthlyBoldedDates, and BoldedDates.

The MONTHDAYSTATE 'array' has to be rebuilt from scratch every time you get the getdaystate message, since the change in months displayed could be by one month, or ten years.

So the only solution I came up with is to build the MONTHDAYSTATE 'array' one day at a time: iterate thru each element of the AnuallyBoldedDates array to find a match for day/month, then iterate thru each element of MonthlyBoldedDates to find a match for day, and then do an ASCAN for the date in BoldedDates.

Thank you again.

Carlos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform