<?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 : Multiple Resources</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Multiple Resources]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:55:12 +0000</pubDate>
  <lastBuildDate>Thu, 21 Sep 2006 08:26:18 +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=5047</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[Multiple Resources : Hi,I do not think that this is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5047&amp;PID=15963&amp;title=multiple-resources#15963</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5047<br /><strong>Posted:</strong> 21 September 2006 at 8:26am<br /><br />Hi,<br><br>I do not think that this is a real problem. <br>Just a cooding style.<br>&nbsp;<br>The code before <br>&nbsp;&nbsp;&nbsp; do...while <br>need to create a data provider in first resource and use it for all others. <br>&nbsp;<br>But you can easily rewrite this code.<br>&nbsp;<br>for example:<br>-----------------------------------------------------------------<br>&nbsp;&nbsp; Dim pDataProvider as CalendarDataProvider<br>&nbsp;<br>&nbsp;&nbsp; Do While Not rsStaff.EOF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I = I + 1<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSchedules.AddNewSchedule rsStaff.Fields("Name").Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pRes1 = New CalendarResource<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if I == 1 then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.SetDataProvider2 "connection string", True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set pDataProvider = pRes1.DataProvider<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.SetDataProvider pDataProvider, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; endif <br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.Name = rsStaff.Fields("Name").Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.ScheduleIDs.Add I<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arResources.Add pRes1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsStaff.MoveNext<br>&nbsp;&nbsp; Loop<br><br>&nbsp;<br>Also to free memory correctly, you have to set bCloseDataProviderWhenDestroy = True for one resource. <br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Thu, 21 Sep 2006 08:26:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5047&amp;PID=15963&amp;title=multiple-resources#15963</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple Resources : The code below works: pSchedules.AddNewSchedule...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5047&amp;PID=15708&amp;title=multiple-resources#15708</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2337">tslu</a><br /><strong>Subject:</strong> 5047<br /><strong>Posted:</strong> 14 September 2006 at 8:21pm<br /><br />&nbsp;The code below works:<br>&nbsp;<br>&nbsp;&nbsp; pSchedules.AddNewSchedule rsStaff.Fields("Name").Value<br>&nbsp;&nbsp; pRes0.Name = rsStaff.Fields("Name").Value<br>&nbsp;&nbsp; pRes0.ScheduleIDs.Add rsStaff.Fields("ID").Value<br>&nbsp;&nbsp; arResources.Add pRes0<br>&nbsp;&nbsp; rsStaff.MoveNext<br>&nbsp; &nbsp;<br>&nbsp;&nbsp; Do While Not rsStaff.EOF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I = I + 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSchedules.AddNewSchedule rsStaff.Fields("Name").Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pRes1 = New CalendarResource<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.SetDataProvider pRes0.DataProvider, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.Name = rsStaff.Fields("Name").Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.ScheduleIDs.Add I<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arResources.Add pRes1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsStaff.MoveNext<br>&nbsp;&nbsp; Loop<br><br>if I dont want include the part before the do...while loop it doesnt work as it doesnt show what I have in the Event.mdb.<br>]]>
   </description>
   <pubDate>Thu, 14 Sep 2006 20:21:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5047&amp;PID=15708&amp;title=multiple-resources#15708</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple Resources : And what exactly do you want to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5047&amp;PID=15706&amp;title=multiple-resources#15706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5047<br /><strong>Posted:</strong> 14 September 2006 at 4:34pm<br /><br />And what exactly do you want to improve? What's your problem?<DIV>&nbsp;</DIV><DIV>--</DIV><DIV>WBR,</DIV><DIV>Serge</DIV>]]>
   </description>
   <pubDate>Thu, 14 Sep 2006 16:34:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5047&amp;PID=15706&amp;title=multiple-resources#15706</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple Resources : How can I improve the following....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5047&amp;PID=15689&amp;title=multiple-resources#15689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2337">tslu</a><br /><strong>Subject:</strong> 5047<br /><strong>Posted:</strong> 14 September 2006 at 5:35am<br /><br />How can I improve the following. I am new to this. I'm quit confused<br><br>&nbsp;&nbsp; pSchedules.AddNewSchedule rsStaff.Fields("Name").Value<br>&nbsp;&nbsp; pRes0.Name = rsStaff.Fields("Name").Value<br>&nbsp;&nbsp; pRes0.ScheduleIDs.Add rsStaff.Fields("ID").Value<br>&nbsp;&nbsp; arResources.Add pRes0<br>&nbsp;&nbsp; rsStaff.MoveNext<br>&nbsp; &nbsp;<br>&nbsp;&nbsp; Do While Not rsStaff.EOF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I = I + 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pSchedules.AddNewSchedule rsStaff.Fields("Name").Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set pRes1 = New CalendarResource<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.SetDataProvider pRes0.DataProvider, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.Name = rsStaff.Fields("Name").Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRes1.ScheduleIDs.Add I<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arResources.Add pRes1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsStaff.MoveNext<br>&nbsp;&nbsp; Loop <br>]]>
   </description>
   <pubDate>Thu, 14 Sep 2006 05:35:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5047&amp;PID=15689&amp;title=multiple-resources#15689</guid>
  </item> 
 </channel>
</rss>