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....



Create


Unit:SDL_vector
Class:TVector, TIntVector
Declaration:constructor Create (AOwner: TComponent);

The call to the constructor Create instantiates an object of the class TVector and allocates the necessary heap memory. If there is not enough memory space on the heap, an exception is generated ('not enough memory on heap').

Hint: The elements of a newly created vector are not initialized by default. Use the methods Clear or Fill to set them to a defined initial state.

Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): testvec



Last Update: 2023-Feb-06