How best could I save this component and all internal variables? Examples of code would be appreciated.
TSmall = record
fName: string[30];
fAge: integer;
fID_Number: string[30];
end;
TRec = record
ArraySmall: array[1..10] of TSmall;
end;
TBigComponent = class(TComponent)
private
fSmallArr: TRec;
fCompCount: integer;
fBigName: string;
public
procedure AddNew(Name: string; Age: integer; ID: string);
procedure Save(FileName: string);
procedure Load(FileName: string);
procedure SetName(Name: string);
function GetName: string;
function ToString: string;
published
property SmallArr: TRec read fSmallArr write fSmallArr;
property Count: integer read fCompCount write fCompCount;
property Name: string read fBigName write fBigName;
end;