Online Help TEDIObjectList
Unit JclEDI
Types
TEDIObjectList |
||||||||||||||||||||||||||||||||
The TEDIObjectList object manages a linked list of TEDIObjectListItem objects. By default this object will free any TEDIObjects that this list contains when it is destroyed. The TEDIObjectList objects are typically used by TEDIDataObjectGroup type objects.
Override CreateListItem in descendent classes to create the TEDIObjectListItem type object required for descendent TEDIObjectList types.
This function is used internally by TEDIObjectList and will get the item in the list by index. If the current item index is equal to the search index, then the current item will be returned. If the current item index is not equal to the search index, then the search will begin from the current item and progress to the beginning or the end of the list depending on the value of search index compared with the current index.
Item management functions and procedures.
The navigation functions can be overridden to accommodate different TEDIObjectList descendent types without having to typecast.
FindItemByName will return the first item matching the name parameter. Optionally start item can be specified to start searching from another position in the list. ReturnListItemsByName will return all items matching the name parameter. The TEDIObjectList that is returned does not own the objects contained in the original list.
These procedures are used for dynamic array emulation. The EDI objects originally used dynamic arrays which were later replaced by the TEDIObjectList implementation. Existing code needed to remain compatible so these procedures help maintain compatibility with older code.
The loAutoUpdateIndexes flag is used with the dynamic array emulation routines. Normally the flag is set, however if many Insert or Delete operations need to be performed then the flag can be turned off to prevent UpdateIndexes from being repeatedly called. If the flag is turned off, it must be turned it back on after any mass inserts or deletes, and a call to UpdateIndexes will need to made.
Use the Item property to get the TEDIObjectListItem and use the EDIObject property to get only the TEDIObject for the item at the index. |
Usage
Notes & Examples |
< Under Construction > |