Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Switch between Records and Childs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Switch between Records and Childs

 Post Reply Post Reply
Author
Message
Albert1 View Drop Down
Groupie
Groupie
Avatar

Joined: 01 February 2007
Location: Italy
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote Albert1 Quote  Post ReplyReply Direct Link To This Post Topic: Switch between Records and Childs
    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)

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.