10148 : How can i set nil (null) parent to a node in phGantX?

Question

How can i set nil (null) parent to a node?

I can set a subnode with: activeNode.ChangeOwner(parentNode.SubDataList,0);

But how can i set the node with no parent at all?

Thanks a lot!

Answer

You can change the parent of a node to null, by adding it to the root list:

activeNode.ChangeOwner(IphGantX3.RootDataEntitiesTree,0);

or you can change the parent property directly;

IphDataEntity_Tree2.Parent=nil;

 

Leave a Reply