<?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 : Remove Schedule</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Remove Schedule]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 07:09:06 +0000</pubDate>
  <lastBuildDate>Fri, 25 May 2007 19:07:38 +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=7171</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[Remove Schedule : Serge,  Thank you for the reply....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7171&amp;PID=23261&amp;title=remove-schedule#23261</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2378">Rod001</a><br /><strong>Subject:</strong> 7171<br /><strong>Posted:</strong> 25 May 2007 at 7:07pm<br /><br /><DIV>Serge,</DIV><DIV>&nbsp;</DIV><DIV>Thank you for the reply. You put me on the right track. I do beleive the following code is what I want to remove a selected resources from the calendar.<DIV>&nbsp;</DIV></DIV><DIV>If CalendarControl.MultipleResources.Count &gt; 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.MultipleResources.Remove <strong><EM>index</EM><BR></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.Populate<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CalendarControl.RedrawControl<BR>End If</DIV><DIV>&nbsp;</DIV><DIV>Thank you,</DIV><DIV>Rod</DIV>]]>
   </description>
   <pubDate>Fri, 25 May 2007 19:07:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7171&amp;PID=23261&amp;title=remove-schedule#23261</guid>
  </item> 
  <item>
   <title><![CDATA[Remove Schedule : Hi Rod,Note that .Schedules collection...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7171&amp;PID=23072&amp;title=remove-schedule#23072</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 7171<br /><strong>Posted:</strong> 19 May 2007 at 10:23am<br /><br />Hi Rod,<br><br>Note that .Schedules collection just stores schedules information in the database. Also, collection is started from the Zero index, and index is changed after removal. So, if you'd like to delete all schedules, it should be done like this:<br><table width="99%"><tr><td><pre class="BBcode"><br><p style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; font-family: 'Comic Sans MS';">Dim i As Integer<o:p></o:p></span></p><p style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; font-family: 'Comic Sans MS';">For i = 1 To pSchedules.Count<o:p></o:p></span></p><p style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; font-family: 'Comic Sans MS';"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>pSchedules.RemoveSchedule (<b>0</b>) <o:p></o:p></span></p><span style="font-size: 10pt; font-family: 'Comic Sans MS';">Next i</span><br></pre></td></tr></table><br><br>However, may be your actual goal is reconfigure resources collection? Then you need to work with another property: CalendarControl.<b>MultipleResources</b><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 19 May 2007 10:23:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7171&amp;PID=23072&amp;title=remove-schedule#23072</guid>
  </item> 
  <item>
   <title><![CDATA[Remove Schedule : Hi,  I am using VB6 and version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7171&amp;PID=23010&amp;title=remove-schedule#23010</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2378">Rod001</a><br /><strong>Subject:</strong> 7171<br /><strong>Posted:</strong> 17 May 2007 at 7:13pm<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Hi,<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana">I am using VB6 and version 11.1.0. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN></SPAN><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">I have created a small VB 6 app to test the code below. The code was created to remove a selected schedule in a </SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana">multi-resource collection</SPAN><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">; somewhat like Outlook does to share calendar information. </SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana">I&nbsp;am using a custom data provider. <o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; tab-stops: 60.75pt"><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana">When I run code nothing seem to happen. I can't figure out how to make the code work or <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>if it’s even possible.</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Dim pSchedules As CalendarSchedules<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Set pSchedules = CalendarControl.DataProvider.Schedules<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">If pSchedules Is Nothing Then<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Exit Sub<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">End If<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Dim i As Integer<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">For i = 1 To pSchedules.Count<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>pSchedules.RemoveSchedule (i) <o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">Next i<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">CalendarControl.Populate<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Comic Sans MS'">CalendarControl.RedrawControl</P><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>Thank you,</DIV><DIV>Rod<o:p></o:p></SPAN></DIV>]]>
   </description>
   <pubDate>Thu, 17 May 2007 19:13:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7171&amp;PID=23010&amp;title=remove-schedule#23010</guid>
  </item> 
 </channel>
</rss>