Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - selected events collection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

selected events collection

 Post Reply Post Reply
Author
Message
WaaZ View Drop Down
Senior Member
Senior Member


Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaaZ Quote  Post ReplyReply Direct Link To This Post Topic: selected events collection
    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

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: 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.
 
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.