Hi,
I have a Clist which contains one more list.I need to delete the member in the inner List using the positions stored.I do the following,but i am getting a crash.Pl. help me to find a soln.below goes the code.
pos1 = List1.GetHeadPosition();
HeadPos = pos1;
node = List1.GetNext(pos1);
pos2 = List1.ChildList.GetHeadPosition();
ChildHdPos = pos2;
ChildNode = List1.ChildList.GetNext(pos2);
now i need to delete the first element in the child list,hence i do the following,
(List1.GetAt(HeadPos)).ChildList.RemoveAt(ChildHdPos);
but this is giving me a crash.
Advance Thanks,
Raghunath.S
I have a Clist which contains one more list.I need to delete the member in the inner List using the positions stored.I do the following,but i am getting a crash.Pl. help me to find a soln.below goes the code.
pos1 = List1.GetHeadPosition();
HeadPos = pos1;
node = List1.GetNext(pos1);
pos2 = List1.ChildList.GetHeadPosition();
ChildHdPos = pos2;
ChildNode = List1.ChildList.GetNext(pos2);
now i need to delete the first element in the child list,hence i do the following,
(List1.GetAt(HeadPos)).ChildList.RemoveAt(ChildHdPos);
but this is giving me a crash.
Advance Thanks,
Raghunath.S