Print Page | Close Window

Switch between Records and Childs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=20538
Printed Date: 23 November 2024 at 2:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Switch between Records and Childs
Posted By: Albert1
Subject: Switch between Records and Childs
Date Posted: 18 January 2013 at 6:01am
Hello,
 
Is it possible, by code, to transform a child record to a normal record and vice versa?
 
I am using code like this:

Dim Record As ReportRecord
Dim ChildRecord As ReportRecord
Dim pRecord As ReportRecord

Select Case level
  Case 0
    Set Record = rpt.Records.Add
    Set pRecord = Record
  Case 1
    Set ChildRecord = Record.Childs.Add
    Set pRecord = ChildRecord
End Select
Set Item = pRecord.AddItem(vbNullString)
...
rpt.Populate
 
What if I need to move a row from a level 1 to a level 0? I am not able to Cry.
 
RowTreeLevel is unuseful and I am not able to use AddRecordEx()???
 
Any suggestion?
 
Thank you


-------------
Product: Xtreme SuitePro (ActiveX) version 13.4.1 / 16.3.0

Platform: Windows Vista (32bit) - SP 2

Language: Visual Basic 6.0 (SP6)




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net