Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Date can not indicated
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Date can not indicated

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


Joined: 20 December 2006
Location: United Kingdom
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingrid Quote  Post ReplyReply Direct Link To This Post Topic: Date can not indicated
    Posted: 16 July 2007 at 11:05am
Hello,
I do not get a date in the calender indicated.

To me someone can say which I makes wrong.

here my Code

Dim Event as CalendarEvent
set Event = CalendarControl.DataProvider.CreateEvent

With Event
.Subject = "Test"
.Body = "Termin"
.StartTime = "16-07-2007 10:00:00"
.EndTime = "16:07:2007 13:00:00"
.AllDayEvent = False
End with

CalendarControl.DataProvider.Addevent Event
CalendarControl.Populate
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2007 at 12:32pm
Hello,
 
This new code works for me:
 
Dim pEvent as CalendarEvent
set pEvent = CalendarControl.DataProvider.CreateEvent

With pEvent
.Subject = "Test"
.Body = "Termin"
.StartTime = "16-07-2007 10:00:00"
.EndTime = "16-07-2007 13:00:00"
.AllDayEvent = False
End with

CalendarControl.DataProvider.Addevent pEvent
CalendarControl.Populate
 
 
There is some differences with the original code:
  1. Event seems to be a reserved word is replaced with pEvent
  2. Date for EndTime seems to be incorrect
Hope this wil help you.
Back to Top
Ingrid View Drop Down
Newbie
Newbie


Joined: 20 December 2006
Location: United Kingdom
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingrid Quote  Post ReplyReply Direct Link To This Post Posted: 18 July 2007 at 11:13am
Oh Thanks Functioned
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.125 seconds.