PDA

View Full Version : Accessing member data in functions



dhayes
10-07-2003, 02:49 AM
Sorry if this is repeat, or obvious.

I can't figure out how to access member data after passing the objects' id into a function. Or after getting said object's chldren.

for example:

foo:thing
{
thingparent=thing.parent;
//or
thingchld=thing.firstchild();
thingchildname=thingchild.name;
}

generic
{
foo(whatever);
}

Gives an error. Is there an easy way to do this?

Thanks in advance,

Dan Hayes