<head><title>ColdC: Function/Method Reference: chparents()</title></head> <body> <h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: chparents()</h1> <hr> <p> <font size=+1><i>INTEGER</i> <b>chparents</b>(<i>LIST <b>parents</b></i>)</font> <p>This function changes the parents of the current object to the list of objnums in <VAR>parents</VAR>. If any of the objnums in <VAR>parents</VAR> do not refer to an existing object, then the error <CODE>~objnf</CODE> is thrown. If any of the parents have the current object as an ancestor, or are the current object, then the error <code>~parent</code> is thrown. If <var>parents</var> is an empty list, then <code>~perm</code> is thrown. Otherwise a <code>1</code> is returned. <p><hr size=4><p align=center><i>Last Modified on Feb 26 1996</i> <br><i>Copyright © 1995, 1996, Brandon Gillespie</i> </body>