Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> objnmechg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ObjNmeChg()
------------------------------------------------------------------------------
 Purpose:
 Change the name of an object.

 Syntax:
 bResult = ObjNmeChg( lpszOldName, lpszNewName, wObjectType )

 Parameters:
 lpszOldName The existing name of the object.
 lpszNewName The new name of the object.
 wObjectType The object type.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 ObjNmeChg() renames an existing object of specified name lpszOldName
 to the new name lpszNewName, where wObjectType is the object type.

 Returns TRUE if successful, or FALSE if an error occurs.

 Example:
 // To rename user name JOHN to JACK:
 if ( ObjNmeChg( "JOHN", "JACK", OT_USER ) )
    ? "User object JOHN has now had his name changed to JACK"
 endif

 Notes:
 This function requires Supervisor equivalence.

 For more information on valid object types, see the reference in Bindery
 Functions, Chapter 3.

See Also: FSObjAdd() FSObjDel() FSObjLst() ObjIDGet() ObjTypGet() ObjNmeGet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson