|
Class Reference
%Library.ListOfObjects
|
|
![]() |
|||
Private Storage |
The
Internally, a
Set doc=list.GetAt(7) Write doc.Name
Set name=list.GetAt(7).Name
|
|
Properties | |||
---|---|---|---|
Data | ElementType | Oref | Size |
Subclasses | |
---|---|
%Library.ListOfObjectsWithClassName | %Library.ListOfPersistentChildObjects |
|
This parameter determines how the collection object stores OID values. If this parameter is set to 0, then partially-formed OID values, containing only an ID number, are used. If this parameter is set to 1, then fully-formed OID values, containing both a class name and an ID number, are used.
The type (class name) of the elements stored in the collection.
|
Data is a private property used to hold the contents of the list.
The type (class name) of the elements stored in the collection.
Private storage area used to hold OREF values.
Size is the number of elements contained in the list.
|
Overrides %SerialObject implementation. Scans objects for modifications in the related list (Element) and the terminated relationship list (DeleteOref). Modified/Scheduled to delete objects are added to the save graph.
This method retrieves all of the serial values for referenced objects and places them into the instance variables, Validates, Normalizes, and serializes the object (with a save of the persistent image if persistent).
This method is not meant to be called directly. It is called by %Save and by %GetSwizzleObject.
Unswizzles (removes from memory) the individual element at position key in the list.Returns a
%Status value indicating success or failure.
Constructs array(key)=value for each element in the serialval value.Returns a
%Status value indicating success or failure.
Clears the contents of the array. Both the OID and OREF values are cleared.Returns a
%Status value indicating success or failure.
Returns the number of elements contained in the list.
Starting from, but not including, position key, Find finds the next element in the list whose OID value equals element. If key is a null string, Find starts at the beginning of the list.Find returns the position of the found element or null string ("") if no element was found.
Starting from, but not including, position key, FindObjectId finds the next element in the list whose ObjectId equals id. If key is a null string, Find starts at the beginning of the list.Find returns the position of the found element or null string ("") if no element was found.
Finds and returns the OREF value referring to the object at position key in the list.GetAt returns the value of the element at location key or null string ("") if no element is found.
Finds and returns the OREF value referring to the object at the position after key in the list. If key is a null string (""), it returns the OREF value of the first element in the list.The value of key, which is passed by reference, is updated to the position value of the returned element or null string ("") if key is at the end of the list.
Finds and returns the OID value referring to the object at position key in the list.Returns the value of the element at location key or null string ("") if no element is found.
Finds and returns the ID value referring to the object at position key in the list.Returns the value of the element at location key or null string ("") if no element is found.
Finds and returns the ID value referring to the object at the position after key in the list. If key is a null string (""), it returns the ID value of the first element in the list.The value of key, which is passed by reference, is updated to the position value of the returned element or null string ("") if key is at the end of the list.
Finds and returns the ID value referring to the object at the position before key in the list. If key is a null string (""), it returns the ID value of the last element in the list.The value of key, which is passed by reference, is updated to the position value of the returned element or null string ("") if key is at the beginning of the list.
Finds and returns the OID value referring to the object at the position after key in the list. If key is a null string (""), it returns the OID value of the first element in the list.The value of key, which is passed by reference, is updated to the position value of the returned element or null string ("") if key is at the end of the list.
Finds and returns the OID value referring to the object at the position before key in the list. If key is a null string (""), it returns the OID value of the last element in the list.The value of key, which is passed by reference, is updated to the position value of the returned element or null string ("") if key is at the beginning of the list.
Finds and returns the OREF value referring to the object at the position before key in the list. If key is a null string (""), it returns the OREF value of the last element in the list.The value of key, which is passed by reference, is updated to the position value of the returned element or null string ("") if key is at the beginning of the list.
Inserts an element with OREF value oref at the end of the list.Returns a
%Status value indicating success or failure.
Inserts an element with OREF value oref at position key.To make room for the new element, the elements previously at or following position key are moved up by one position.
key must be in the following range:
1 <= index <= Count() + 1
Returns a
%Status value indicating success or failure.
Inserts a list with value inslist at the end of the list.Returns a
%Status value indicating success or failure.
Inserts an element with OID value oid at the end of the list.Returns a
%Status value indicating success or failure.
Inserts an element with OID value oid at position key.To make room for the new element, the elements previously at or following position key are moved up by one position.
key must be in the following range:
1 <= index <= Count() + 1
Returns a
%Status value indicating success or failure.
Inserts an element with ID value id at the end of the list.Returns a
%Status value indicating success or failure.
Inserts an element with ID value id at position key.To make room for the new element, the elements previously at or following position key are moved up by one position.
key must be in the following range:
1 <= index <= Count() + 1
Returns a
%Status value indicating success or failure.
Inserts an element with value element into the list at the correct ordered position. The elements in the list are shifted to accommodate the new element as necessary.Returns a
%Status value indicating success or failure.
Finds and returns the index value of the element at the location following key in the list. If key is a null string (""), then Next returns the position of the first element in the list (1).
Finds and returns the index value of the element at the location preceding key in the list. If key is a null string (""), then Next returns the position of the last element in the list.
Removes the element at position key in the list. The elements following position key are moved to fill in the resulting gap.RemoveAt returns the OID value of the removed element or null string ("") if no element was removed. It also has a success output argument that returns true if the item was removed and false if it was not.
Sets the OREF value of the element at position key to oref.Returns a
%Status value indicating success or failure.
Sets the OID value of the element at position key to oid.Returns a
%Status value indicating success or failure.
Sets the ID value of the element at position key to id.Returns a
%Status value indicating success or failure.