Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Moving records between parents
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Moving records between parents

 Post Reply Post Reply
Author
Message
jdingle View Drop Down
Newbie
Newbie


Joined: 31 March 2010
Location: United Kingdom
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote jdingle Quote  Post ReplyReply Direct Link To This Post Topic: Moving records between parents
    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?
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.