%Collection.ListOfDT
class %Collection.ListOfDT extends %Collection.AbstractListOfDT, %Collection.Super
The %Collection.ListOfDT class represents a list of literal (i.e., data type) values each of which is associated with a numeric position in the list. The first element in the list is stored at position 1. You can use a list object as follows:Set list=##class(%ListOfDataTypes).%New() ; add items to the list Do list.Insert("Harpo") Do list.Insert("Groucho") Do list.Insert("Chico") Do list.Insert("Karl") ; iterate over contents of list For i=1:1:list.Count() Write list.GetAt(i),!
Property Inventory
Method Inventory
- Count()
- DeSerialize()
- DisplayToLogical()
- FDBMSToLogical()
- Find()
- GetAt()
- GetNext()
- GetPrevious()
- Insert()
- InsertAt()
- InsertList()
- InsertOrdered()
- IsDefined()
- LogicalToDisplay()
- LogicalToFDBMS()
- Next()
- Previous()
- RemoveAt()
- Serialize()
- SetAt()
- SizeGet()
- SizeSet()
Properties
Methods
Find returns the position of the found element or null string ("") if no element was found.
GetAt returns the value of the element at location key or null string ("") if no element is found.
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.
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.
Returns a %Status value indicating success or failure.
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 <= key <= Count() + 1
Returns a %Status value indicating success or failure.Returns a %Status value indicating success or failure.
Returns a %Status value indicating success or failure.
RemoveAt returns the value of the removed element or null string ("") if no element was removed.
Returns a %Status value indicating success or failure.
Inherited Members
Inherited Properties
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %Disconnect()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %IsNull()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- BuildValueArray()
- Clear()
- LogicalToOdbc()
- OdbcToLogical()