SaveBinary

Declaration: TMat4D.SaveBinary (FName: string; TSlotStart, TSlotEnd: integer): integer;
The method SaveBinary stores all matrix data in the time slots between TSlotStart and TSlotEnd in the binary data 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