Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 29-Oct-2009, 07:16 PM
Junior Member
 
Join Date: Feb 2008
Posts: 20
mesheree 0 reputation points
Default Re: Read Appointment-specific Message properties?

Found the answer in this thread... though I still have no idea what "casting" is. If anyone's Googling for the answer and finds this thread:

Basically:
  1. Declare an empty Appointment object.
  2. Loop through your Messages collection with a Message object.
  3. When you find a message that has a ClassType of "GW.MESSAGE.APPOINTMENT", assign it to the Appointment variable.
Code:
Dim gwMsg As GroupwareTypeLibrary.Message3
Dim gwAppt As GroupwareTypeLibrary.Appointment9

Set gwCalMsgs = gwAcct.Calendar.Messages
For Each gwMsg In gwCalMsgs
   If gwMsg.ClassName = "GW.MESSAGE.APPOINTMENT" Then
      Set gwAppt = gwMsg
      ' ---< Now your object is of the 'Appointment' type. >---
   End If
Next
Originally Posted by mesheree View Post
When I use VBA to read Messages from my GroupWise 7 Calendar, they seem to only have the properties of standard Message objects.
How do I gain access to a Message object's Appointment-specific properties?

Thanks!
Sheree
Reply With Quote
 

Tags
appointments, properties, subtype, vba

Thread Tools
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 07:21 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2