Print Page | Close Window

Date can not indicated

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=7606
Printed Date: 06 October 2024 at 4:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Date can not indicated
Posted By: Ingrid
Subject: Date can not indicated
Date 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



Replies:
Posted By: dentor
Date 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.


Posted By: Ingrid
Date Posted: 18 July 2007 at 11:13am
Oh Thanks Functioned



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