The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



IsEmpty


Unit:SDL_vector
Class:TVector, TIntVector
Declaration:property IsEmpty: boolean;

The property IsEmpty is a flag which indicates whether the vector is empty (unused) or not. Please mind the subtle difference between an empty vector (as indicated by IsEmpty) and a vector which is filled with zeros (which is not an empty vector).

The property IsEmpty is TRUE after creating the vector. It is reset to a FALSE value by assigning a value to any of the vector elements (either directly via the Elem property, or indirectly by loading a vector from a file, or by copying contents from another vector). IsEmpty is set to a TRUE value by the method Clear.

Setting the property IsEmpty does not affect the vector and leaves all properties unchanged (it is simply a flag which server to detect empty conditions).


Last Update: 2023-Feb-06