Print Page | Close Window

How to remove all 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=9115
Printed Date: 29 April 2024 at 8:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to remove all resources ?
Posted By: nebulon
Subject: How to remove all resources ?
Date Posted: 16 December 2007 at 9:06am
After adding some resources via CXTPCalendarResourcesManager__%7ECXTPCalendarResourcesManager.html - CXTPCalendarResourcesManager , I tried to remove them all. But there is always one last ressource that stay without been able to deleted it. I tried your CalendarDemo sample and this problem is also present in your demo sample.

I tried:
          while(pSchedules->GetCount()>0)
            {
                pSchedules->RemoveSchedule(pSchedules->GetAt(0)->GetID());
            }
or
            while(m_pCalRCman->GetResourcesCount()>0)
            {
                m_pCalRCman->RemoveResource(0);
            }
or
        m_pCalRCman->RemoveAll();


then
            m_CalendarCtrl.Populate();
            m_CalendarCtrl.RedrawControl();



without possibility to delete the last ressource.

Any idea ?




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