Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Different number of resources
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Different number of resources

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


Joined: 18 June 2010
Location: Netherlands
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote RK007 Quote  Post ReplyReply Direct Link To This Post Topic: Different number of resources
    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?
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.172 seconds.