Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Recurrence help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Recurrence help

 Post Reply Post Reply
Author
Message
tejsingh View Drop Down
Newbie
Newbie


Joined: 28 March 2007
Location: United Kingdom
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote tejsingh Quote  Post ReplyReply Direct Link To This Post Topic: Recurrence help
    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

Back to Top
tejsingh View Drop Down
Newbie
Newbie


Joined: 28 March 2007
Location: United Kingdom
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote tejsingh Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
tejsingh View Drop Down
Newbie
Newbie


Joined: 28 March 2007
Location: United Kingdom
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote tejsingh Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2007 at 6:48am
Cheers i got this working
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.