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

Schedules

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


Joined: 12 September 2011
Location: Atkinson
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote seanic24 Quote  Post ReplyReply Direct Link To This Post Topic: Schedules
    Posted: 12 September 2011 at 2:32am
I want to use the existing code you have for the Mysql class.
It all works great until I put different schedules on the calendar - the calendarcontrol.populate routine
fails to fire the providerMysql class.
Please be as simple as possibe because I am !

Public Sub OpenProvider(ByVal eDataProviderType As CodeJockCalendarDataType, ByVal strConnectionString As String)
 

     Set m_pCustomDataHandler = New providerMySQL
     m_pCustomDataHandler.OpenDB strConnectionString
     m_pCustomDataHandler.SetCalendar CalendarControl

     CalendarControl.SetDataProvider strConnectionString
     CalendarControl.DataProvider.CacheMode = xtpCalendarDPCacheModeOnRepeat



     If Not CalendarControl.DataProvider.Open Then
        CalendarControl.DataProvider.Create
     End If


    'All works until here
    Set objCalendar = Me.CalendarControl
    Set objResources = New CalendarResources

    objResources.Add CreateResources("test1", 1)
    objResources.Add CreateResources("Test2", 2)

    CalendarControl.SetMultipleResources objResources
   
   
     CalendarControl.Populate
     wndDatePicker.RedrawControl

End Sub

//VB6
// Windows XP/ 7
// Calendar control V13



Sean Atkinson
Back to Top
seanic24 View Drop Down
Newbie
Newbie


Joined: 12 September 2011
Location: Atkinson
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote seanic24 Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2011 at 11:55am
Problem solved
The very nice people from software support pointed me to the right area.
Thanks a lot
Sean Atkinson
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.140 seconds.