Print Page | Close Window

Accessing events

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=14264
Printed Date: 09 May 2024 at 7:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Accessing events
Posted By: andyw
Subject: Accessing events
Date Posted: 11 May 2009 at 6:23am
Hi,
 
I've developed a small app for a customer who upon start up of the app wants a message box alerting the user that there are events/appointments for the current day.
 
So, i'm using the xml file data source approach, and need to know for example ,given todays date how i access or check for events for today. Then i can pop up a simple message telling the user they have appointments for today etc.
 
Regards



Replies:
Posted By: SuperMario
Date Posted: 11 May 2009 at 9:04am
    Dim dayEvents As CalendarEvents
    Dim cDay As CalendarEvent
    Set dayEvents = CalendarControl.DataProvider.RetrieveDayEvents(DateTime.Date)
    
    For Each cDay In dayEvents
        Debug.Print cDay.Subject
    Next cDay


Posted By: andyw
Date Posted: 12 May 2009 at 9:03am
Brill. Thanks



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