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
jhonmacaraig View Drop Down

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
                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
                If arRes.Count > 0 Then
                 ViewDay.SetMultipleResources arRes
                   //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,

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.063 seconds.