Print Page | Close Window

Different number of resources

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=16876
Printed Date: 06 October 2024 at 12:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Different number of resources
Posted By: RK007
Subject: Different number of resources
Date Posted: 25 June 2010 at 10:40am
Version in use: ActiveX CalendarControl 13.4.0

I have a Calendar that can show the appointments of different users. From a list I can select the users for whom to show the Calendar.
The appointments are added with the CalendarResourcesManager.
When the users are changed, first all existing resources are removed before adding the appointments for the newly selected users.

Everything seems to be working fine, but when I remove all the resources I get different results for the number of resources.
I remove the resources with a construction like I found somewhere on the forum:

    Do Until g_DataResourcesMan.ResourcesCount = 0
        g_DataResourcesMan.RemoveResource (0)
    Loop

Besides this part I also remove all schedules manually.


When I try the receive the number of resources with the CalendarResourcesManager the resourcescount tells me that I have 0 resources.
When I retrieve this information via DataProvider.multipleresources.count it tells me that there is still 1 resource.
Although the last one is actually true (I can get information from one of my users with HitTest), I should have expected that the result should be 0 in both cases.

Anybody any idea why I see this difference?



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