Print Page | Close Window

selected events collection

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=5726
Printed Date: 05 July 2024 at 2:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: selected events collection
Posted By: WaaZ
Subject: selected events collection
Date Posted: 08 December 2006 at 7:16am
I want to scan a list of events that an user has selected (with Ctrl-Click)

Your documentation  (Xtreme Calendar ActiveX Control v10.3) says that if I take the property:
ActiveView.GetSelectedEvents
I can handle two properties of this object:
Count  (the umber of events selected)
ViewEvent (it should be a collection of selected events)

I cannot find this ViewEvent
why?
it's implemented, isn't it?
or it's only a little mistake in the documentation?

there is another way to have a collection of all the selected events?

thank you in advance




Replies:
Posted By: dentor
Date Posted: 08 December 2006 at 7:54am
Hello,
 
Below is an example of browsing selected events to delete them:
 
Private Sub DelSelEvents()
Dim TotSelect As CalendarViewEvents
Dim ViewEvt As CalendarViewEvent
   
    Set TotSelect = Calendar.ActiveView.GetSelectedEvents
    If TotSelect.Count > 0 Then
     For Each ViewEvt In TotSelect
         Set SaveEvent = ViewEvt.Event
                Calendar.DataProvider.DeleteEvent ViewEvt.Event
        Next
        Calendar.Populate
    End If
End Sub
 
I hope this will help.
 



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