Category: Object Maintenance

The Original Internet Language

Renaming Objects

You can rename an object using the ZOMReName command. The new object name is specified using the target indicator “>”. The following example renames “Customers” to “Custs”. ZOMReName Customers > Custs

Deleting Objects

Deleting an object can be accomplished by using the ZOMDelete command. The following example deletes the object “Customers”, causing its description to be removed from the Object Dictionary: ZOMDelete Customers

Destroying Objects

Destroying an object using the ZOMDestroy command. The following example destroys the object “Customers”, removing all knowledge of the object: ZOMDestroy Customers ZOMDestroy is executed when deleting objects in DC.

Copying Objects

You can copy an object using the ZOMCopy command. ZOMCopy is similar to ZOMReName, with the target referring to the new object name. The following example copies “Customers” to “TestCusts”. ZOMCopy Customers > TestCusts

Moving Objects

You can move an object from one directory to another using the ZOMMove command. A set of objects can be moved at once. The destination directory is specified using the target indicator “>”. The following example moves all objects named “Customers” (from the directories to which each belongs) to the directory NewDir: ZOMMove Customers >…
Read more

Recreating Objects

ZOM also provides a service, ZOMCreate, for re-creating objects whose definition has changed. Recreating the object Employees would be executed as follows: ZOMReCreate Employees A common situation is dealing with “out-of-date” or “corrupt” objects. An object is considered corrupt if it depends on objects which have been erased or moved. Corrupt object must be recreated.…
Read more

Erasing Objects

With ZOM, it is important to differentiate between erasing an object, deleting an object, and destroying an object: Erasing Removes the object such that it cannot be referenced in the application. The object’s description in the Object Dictionary is unaffected. Deleting Removes the object’s description from the Object Dictionary. Your ability to reference the object…
Read more

Object Maintenance

Routine tasks performed by every Zim developer are creating, erasing, recreating, moving, and copying objects. Collectively, these tasks are called Object Maintenance. ZOM provides considerable assistance to the developer in this area. ZOM is designed to process sets of objects and maintain knowledge of object dependencies. ZOM operates on sets of objects, rather than one…
Read more

en_CAEnglish