|
rename
|
The rename function changes the retrieval key of an object stored in the specified
ObjectRepository {aGor}, without moving, resaving, or disturbing the stored object.
Only the retrieval key, in the ObjectRepository index is renamed. If there is already a retrieval
key with the new name, an error is returned. When to use The rename function is used to rename objects stored in an Object Repository. The
same goal can be accomplished by retrieving the stored object, erasing the old copy, and resaving
the object under the new retrieval key; but this would obviously require more time and resources
than using the rename function.
(rename aGor oldKey newKey) Returns true or an error.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_ObjectRepository_rename_001
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types aGor The ObjectRepository, whose index will be altered. ObjectRepository oldKey The retrieval key which is to be renamed. Symbol newKey The new retrieval key. Symbol
Returns:
Examples
Argument Types
ObjectRepository
Symbol
Boolean
How do I contact the AIS team?