Cold Help System: Programming: ColdC Reference Manual: Functions: Object: chparents()


INTEGER chparents(LIST parents)

This function changes the parents of the current object to the list of objnums in parents. If any of the objnums in parents do not refer to an existing object, then the error ~objnf is thrown. If any of the parents have the current object as an ancestor, or are the current object, then the error ~parent is thrown. If parents is an empty list, then ~perm is thrown. Otherwise a 1 is returned.


ancestors() | children() | chparents() | create() | data() | del_objname() | destroy() | has_ancestor() | lookup() | objname() | objnum() | parents() | set_objname()


the Cold Dark