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


INTEGER set_objname(SYMBOL name)

This function sets the argument name as the current object's objname. If another object already has the object name name, the error ~error is thrown. If the current object already has an object name, it is replaced with the new name. Example:

set_objname('user_bob)
=> 1


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


the Cold Dark