View Single Post
  #2  
Old April 29th 10, 04:49 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Identify weekend from daily RecurrencePattern

Have you looked at DayOfWeekMask?

olMonday = 2
olTuesday = 4
olWednesday = 8
olThursday = 16
olFriday = 32

32+16+8+4+2 = 62

If DayOfWeekMask is 62 then the work week would be Monday to Friday. The
mask is actually the OR of all the binary values of the day flag bits.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"sgrosch1" sgrosch1.4a552y@invalid wrote in message
news:sgrosch1.4a552y@invalid...

I'm parsing a RecurrencePattern object where the recurrence type is
daily. If I'm understanding properly, the pattern Interval of 0 means
that they only want weekdays. Is that correct? If so, how do I
identify which days are weekday?

I know in the calendar options page there are checkboxes for what a
workweek is. Can somebody show me how to access those checkboxes
please?


--
sgrosch1
http://forums.slipstick.com


Ads