Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - _DCalendarControl Failed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

_DCalendarControl Failed

 Post Reply Post Reply
Author
Message
jhonmacaraig View Drop Down
Newbie
Newbie


Joined: 22 August 2016
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jhonmacaraig Quote  Post ReplyReply Direct Link To This Post Topic: _DCalendarControl Failed
    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
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.