Print Page | Close Window

Schedules

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=18938
Printed Date: 28 September 2024 at 5:53pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Schedules
Posted By: seanic24
Subject: Schedules
Date 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



Replies:
Posted By: seanic24
Date 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



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