<?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 : DropRecords from &#111;ne RC to another</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : DropRecords from &#111;ne RC to another]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 11:18:36 +0000</pubDate>
  <lastBuildDate>Wed, 19 Apr 2006 16:09:54 +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=4031</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[DropRecords from &#111;ne RC to another : Is there a sample available that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4031&amp;PID=12300&amp;title=droprecords-from-one-rc-to-another#12300</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1670">John31</a><br /><strong>Subject:</strong> 4031<br /><strong>Posted:</strong> 19 April 2006 at 4:09pm<br /><br /><P>Is there a sample available that shows how to modify the records being dropped into a report control?&nbsp; I am aware of the existing sample using Ole and List boxes.</P><P>Take the following:</P><P>2 Report Controls, RC1 and RC2&nbsp;with different columns. </P><P>Drag rows from RC1 to RC2.</P><P>In the DropRecords event of RC2 the records need to be adjusted to appear in the correct columns of RC2. The code below shows how I think you would do it.&nbsp; However, the step in bold appears to do nothing.&nbsp; What am I doing wrong?</P><P>&nbsp;</P><P>' create a new records collection that will be populated with converted data and then<BR>&nbsp;&nbsp;&nbsp; ' replace the records passed in the event<BR>&nbsp;&nbsp;&nbsp; Set oRecords = RC2.CreateRecords<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If m_bDragFromRC1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_bDragFromRC1 = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To Records.Count - 1<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ' get a ref to the old object<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Set oRec = Records(i)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ' create a new record<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Set oNewRec = oRecords.Add<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; oNewRec.AddItem ""<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; oNewRec.AddItem("").Icon = ID_DSS<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; oNewRec.AddItem GetFirstL(oRec(COL_USER_NAME).Value)<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; oNewRec.AddItem oRec(COL_USER_DEPT).Value<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; oNewRec.AddItem oRec(COL_USER_EXT).Value<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; oNewRec.AddItem "Extension"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next i<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' replace with the new collection<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>Set Records = oRecords</strong><BR>&nbsp;&nbsp;&nbsp; End If</P>]]>
   </description>
   <pubDate>Wed, 19 Apr 2006 16:09:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4031&amp;PID=12300&amp;title=droprecords-from-one-rc-to-another#12300</guid>
  </item> 
 </channel>
</rss>