<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : How to remove all resources ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : How to remove all resources ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 23:06:07 +0000</pubDate>
  <lastBuildDate>Sun, 16 Dec 2007 09:06:33 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=9115</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[How to remove all resources ? :  After adding some resources...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9115&amp;PID=29492&amp;title=how-to-remove-all-resources#29492</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3561">nebulon</a><br /><strong>Subject:</strong> 9115<br /><strong>Posted:</strong> 16 December 2007 at 9:06am<br /><br />After adding some resources via <a href="CXTPCalendarResourcesManager__%7ECXTPCalendarResourcesManager.html" target="_blank">CXTPCalendarResourcesManager</a>, 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.<br><br>I tried:<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; while(pSchedules-&gt;GetCount()&gt;0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pSchedules-&gt;RemoveSchedule(pSchedules-&gt;GetAt(0)-&gt;GetID());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>or<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; while(m_pCalRCman-&gt;GetResourcesCount()&gt;0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pCalRCman-&gt;RemoveResource(0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>or<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pCalRCman-&gt;RemoveAll();<br><br><br>then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_CalendarCtrl.Populate();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_CalendarCtrl.RedrawControl();<br><br><br><br>without possibility to delete the last ressource.<br><br>Any idea ?<br><br>]]>
   </description>
   <pubDate>Sun, 16 Dec 2007 09:06:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9115&amp;PID=29492&amp;title=how-to-remove-all-resources#29492</guid>
  </item> 
 </channel>
</rss>