Print Page | Close Window

Recurrence help

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=7036
Printed Date: 23 November 2024 at 6:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Recurrence help
Posted By: tejsingh
Subject: Recurrence help
Date Posted: 03 May 2007 at 12:00pm
Hi

I am creating recurrence example similar to the example by codejock but i am having problems as it keeps throwing an error when i come to the line below:

RecPattern.StartTime = TimeSerial(arTimes(0), arTimes(1), 0)

The error is Object variable or with block variable not set (run time error: 91)

I have defined
RecPattern as

Public RecPattern As CalendarRecurrencePattern

do i have to set the variable?

TJ




Replies:
Posted By: tejsingh
Date Posted: 04 May 2007 at 4:47am
To add to this i have found the problem but need it rectifying.

In vb when i type in Dim RecPattern as New ..... the calendarRecurrencePattern does not appear in the list of objects/methods/properties available

how do i get this work

cheers

TJ


Posted By: sserge
Date Posted: 12 May 2007 at 8:33am
Hi,

You can't create recurrence from nothing; it should have a corresponding Event linked. So far, creation will look like below:

        Dim NewEvent As CalendarEvent, Recurrence As CalendarRecurrencePattern
        Set NewEvent = CalendarControl.DataProvider.CreateEvent
        Set Recurrence = NewEvent.CreateRecurrence


--
WBR,
Serge


Posted By: tejsingh
Date Posted: 14 May 2007 at 6:48am
Cheers i got this working



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net