IonicWind Software

Aurora Compiler => Coding Help - Aurora 101 => Topic started by: Haim on January 16, 2009, 12:53:54 AM

Title: CIntegerList question
Post by: Haim on January 16, 2009, 12:53:54 AM
Hello,
I am iterating through an integerlist:

for (pointer node=m_exitstack.getfirst();!node==null;node=m_exitstack.getnext(node))
{
....
}

I need to change the value of specific nodes.
I tried node->pdata=value but it does not work
can anyone show me how to change a value in a list node?

Thanks for any help,

Haim
Title: Re: CIntegerList question
Post by: sapero on January 16, 2009, 03:00:45 AM
CIntList still uses memory for integers, so try with *(_linked_list)node.*(int)pData = 99
Title: Re: CIntegerList question
Post by: Haim on January 16, 2009, 03:25:38 AM
Thank Sapero!
That solved it.

Haim