![]() |
Select Range of Events by Date |
Post Reply ![]() |
Author | |
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() Posted: 18 January 2008 at 3:04pm |
Is there a method to select a range of events by date? For example, if the user selects a range of times/dates, I would like to be able to delete any events in that range when they press the delete key.
Thanks, JPB |
|
![]() |
|
wlcabral ![]() Groupie ![]() ![]() Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
![]() ![]() ![]() ![]() ![]() |
There are a lot of ways to do this; I’m sending some information that could be useful: To select events in activeView : for i = 0 to xtremeCalendar.activeView.DaysCount-1 for j = 0 to xtremeCalendar.activeView.Days(i).ViewEventsCount-1 xtremeCalendar.activeView.Days(i).ViewEvents(j).Selected = .t. next next To un-selects all of the events of the current view : xtremeCalendar.activeView.UnselectAllEvents() To delete selected events: oEvents = xtremeCalendar.ActiveView.GetSelectedEvents For c=0 To oEvents.Count-1 oCalendar.dataProvider.DeleteEvent( oevents.ViewEvent(c).Event ) Next |
|
![]() |
|
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() |
Hi wlcabral,
Thanks a lot for your input on my last three questions, it was very helpful! I figured there must be a way to loop through events, I was looking for an Events collection...didn't think of ViewEvents. Thanks again! |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |