Elem

Declaration: TVector.Elem [ix: longint]: double;
The property Elem is used to access a specific element of a vector. The parameter ix specifies the index of the element to be accessed [1..NrOfElem ]. If ix holds an invalid index (the valid range is determined by the parameters of the constructor Create), Elem returns 0.0 or the assignment is ignored. Please note that the property Elem is declared as default property.

Example: The statement Vec1.Elem[20]:=10.555; loads the 20th vector element with the value 10.555.