Cube data
Cube data (TfcxCube):
function LoadFromFile(ACubeFileName: String): Boolean;
Loads cube data from a file. Returns True if the file has been successfully loaded.
The cube is cleared before the data is loaded.
function LoadFromStream(ACubeStream: TStream): Boolean;
Loads cube data from a stream. Returns True if the stream has been successfully loaded.
The cube is cleared before the data is loaded.
function AppendFromFile(ACubeFileName: String): Boolean;
Appends cube data from a file. Returns True if the file has been successfully loaded.
The cube merges the data it already contains with the loaded data.
function AppendFromStream(ACubeStream: TStream): Boolean;
Appends cube data from a stream. Returns True if the stream has been successfully loaded.
The cube merges the data it already contains with the loaded data.
procedure SaveToFile(ACubeFileName: String; AFilter: TObject = nil);
Saves cube data to a file. If the AFilter argument points to a TfcxFilterManager object the cube saves only that data which passes the filter.
procedure SaveToStream(ACubeStream: TStream; ACompressionLevel: TCompressionLevel = clMax; AFilter: TObject = nil);
Saves cube data to a stream. If the AFilter argument points to a TfcxFilterManager object the cube saves only that data which passes the filter. The ACompressionLevel argument sets the compression level.
The cube saves group and slice settings together with the data. The cube does not save the state of filters and any linked chart settings.
The cube file has an mdc extension by default.
Code examples:
fcxCube1.LoadFromFile('c:\cube1.mdc');
fcxCube1.AppendFromFile('c:\cube1.mdc');
fcxCube1.SaveToFile('c:\cube2.mdc');
fcxCube1.SaveToFile('c:\cube2Filter.mdc', fcxFilterManager1);