A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Identify weekend from daily RecurrencePattern



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 28th 10, 07:13 PM posted to microsoft.public.outlook.program_addins
sgrosch1
external usenet poster
 
Posts: 4
Default Identify weekend from daily RecurrencePattern


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
  #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


  #3  
Old April 29th 10, 11:43 PM posted to microsoft.public.outlook.program_addins
sgrosch1
external usenet poster
 
Posts: 4
Default Identify weekend from daily RecurrencePattern


That's the days selected in the recurrence pattern, not the days that
are flagged in the Calendar options for which days the employee works.
I found the calendar options up in the registry and can compare that
against the mask now.


'Ken Slovak - [MVP - Outlook Wrote:
;143230']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



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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RecurrencePattern.GetOccurrence() fails on patterns from recurringTasks Jeff Outlook and VBA 2 October 15th 09 07:42 PM
How do i show only daily tasks when printing daily calendar? dkellogg Outlook - Calandaring 5 March 16th 08 09:43 PM
How can I identify which profile is in use cmgarnett Outlook - Installation 4 May 3rd 07 07:08 AM
Extract individual appointments from RecurrencePattern ? Simon Shutter Outlook and VBA 1 July 7th 06 11:04 PM
RecurrencePattern strangeness Mark McGinty Add-ins for Outlook 0 January 29th 06 07:01 PM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.