Please help me to find out end date-time of the last instance of repeat meeting on the postopen event

EditNew topicPost response Previous Next

Subject: Please help me to find out end date-time of the last instance of repeat meeting on the postopen event.

Feedback Type: Question

Product Area: Notes 8 Client

Technical Area: Functionality

Platform: Windows XP client

Release: All

Reproducible: Always

Hi,

I am using Lotus script to find out end date and time of last instance of repeat meeting. When I click on the Save and Send button of the Lotus Notes, I am successfully able to get end date and time on the querysave event. When I try to open the same repeat meeting from the Calendar (with the Calendar view as Day, Week Or Month), then on the postopen event the same code to find out end date-time for the last instance of repeat meeting is not working. When I select Calendar view as Meetings and try to open the repeat meeting then postopen event triggers twice. In this case on the 2nd postopen event I am successfully getting end date and time values.

Following is the snippet of my code:

Dim iNoOfInstance As Integer

Dim notesEndDateRepeat As NotesDateTime

Dim strDateTime As String

iNoOfInstance = Ubound(Source.Document.RepeatInstanceDates)

Set notesEndDateRepeat = New NotesDateTime(Source.Document.RepeatEndDates(iNoOfInstance))

strDateTime = notesEndDateRepeat.LocalTime

Msgbox strDateTime

Please help me to find out end date-time of the last instance of repeat meeting on the postopen event.

Thanks,

Abhi