Print Page | Close Window

_DCalendarControl Failed

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=23107
Printed Date: 26 April 2024 at 6:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: _DCalendarControl Failed
Posted By: jhonmacaraig
Subject: _DCalendarControl Failed
Date Posted: 22 August 2016 at 8:35pm
Hello Guys,
     I am a newbie on this CalendarControl
I am trying to setup a multiple resource. Here is the issue.

  If CalendarControl.MultipleResources.Count > 1 Then
      Dim arRes As New CalendarResources
      arRes.RemoveAll
                For Index = 1 To CalendarControl.MultipleResources.Count - 1
                  Set oResource = CalendarControl.MultipleResources.Item(Index)
                  Dim staffID As String
                  staffID = oResource.ScheduleIDs(0)
                  hasEvent = PPmpModule.CheckEventExists(staffID, ViewDay.Date)
                  If (hasEvent) Then
                      arRes.Add CalendarControl.MultipleResources.Item(Index)
                  End If
                  
                Next
                If arRes.Count > 0 Then
                 ViewDay.SetMultipleResources arRes
                Else
                   //so what i want to happen is that  i want to set the multipleresource to zero since i don't have an appointment. The problem right now it's throwing an exception when try to set
      
       
               ViewDay.setMultipleResource  to new instance or nothing
                End If
     End If
So it's throwing an exception _DCalendarControl Failed  on Calendar.Populate.

Hope someone could look on to this.

Sincerely yours,

Hhon



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