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


Unit: SDL_matrix
Class: TMat4D
Declaration: function SaveBinary (FName: string; TSlotStart, TSlotEnd: integer): integer;

The method SaveBinary stores all matrix data in the time slots between TSlotStart and TSlotEnd in the file FName.

If any of the time slot parameters is zero or negative, the entire data matrix is stored. If TSlotStart is beyond the maximum time slot of the matrix an error code is returned. If TSlotStart is within the data range but TSlotEnd is beyond the maximum time slot, only the available data are saved.

The function returns the following error codes:

 0 ... everything is OK
-1 ... TSlotStart is beyond the maximum time slot

Hint: The method SaveBinary triggers the OnPercentDone event to allow to implement a progress indicator when working with large files.

Last Update: 2023-Feb-06