<?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 : Switch between Records and Childs</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Switch between Records and Childs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 09:44:29 +0000</pubDate>
  <lastBuildDate>Fri, 18 Jan 2013 06:01:47 +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=20538</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[Switch between Records and Childs : Hello,  Is it possible, by code,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20538&amp;PID=69579&amp;title=switch-between-records-and-childs#69579</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2720">Albert1</a><br /><strong>Subject:</strong> 20538<br /><strong>Posted:</strong> 18 January 2013 at 6:01am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Is it possible, by code, to transform a child record to a&nbsp;normal record and vice versa?</DIV><DIV>&nbsp;</DIV><DIV>I am using&nbsp;code like this:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>Dim Record As ReportRecord<BR>Dim ChildRecord As ReportRecord<BR>Dim pRecord As ReportRecord</DIV><DIV><BR>Select Case level<BR>&nbsp; Case 0<BR>&nbsp;&nbsp;&nbsp; Set Record = rpt.Records.Add<BR>&nbsp;&nbsp;&nbsp; Set pRecord = Record<BR>&nbsp; Case 1<BR>&nbsp;&nbsp;&nbsp; Set ChildRecord = Record.Childs.Add<BR>&nbsp;&nbsp;&nbsp; Set pRecord = ChildRecord<BR>End Select</DIV><DIV>Set Item = pRecord.AddItem(vbNullString)<BR>...</DIV><DIV>rpt.Populate</DIV><DIV><DIV></pre></td></tr></table></DIV></DIV><DIV>&nbsp;</DIV><DIV>What if I need to move a row from a level 1 to a level 0? I am not able to <img src="http://forum.codejock.com/smileys/smiley19.gif" height="17" width="17" border="0" alt="Cry" title="Cry" />.</DIV><DIV>&nbsp;</DIV><DIV>RowTreeLevel is unuseful and I am not able to use AddRecordEx()???</DIV><DIV>&nbsp;</DIV><DIV>Any suggestion?</DIV><DIV>&nbsp;</DIV><DIV>Thank you</DIV>]]>
   </description>
   <pubDate>Fri, 18 Jan 2013 06:01:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20538&amp;PID=69579&amp;title=switch-between-records-and-childs#69579</guid>
  </item> 
 </channel>
</rss>