Print Page | Close Window

Moving records between parents

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=16544
Printed Date: 08 September 2025 at 1:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Moving records between parents
Posted By: jdingle
Subject: Moving records between parents
Date Posted: 31 March 2010 at 8:21am
A fairly simple query:
What is the correct method of changing a record's parent record?
 
I assumed it would be something like:
 

oldParentRec->GetChilds()->RemoveRecord(pRec);
newParentRec->GetChilds()->Add(pRec);
 
However, enough problems occur with that method to tell me that I am doing this the wrong way. Can you enlighten me?



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