Author: Tomas Rutkauskas How to store TForms and / or their properties in a Paradox blob field Answer: 1 2 procedure SaveToField(FField: TBlobField; Form: TComponent); 3 var 4 Stream: TBlobStream; 5 FormName: string; 6 begin 7 FormName := Copy(Form.ClassName, 2, 99); 8 Stream := TBlobStream.Create(FField, bmWrite); 9 try 10 Stream.WriteComponentRes(FormName, Form); 11 finally 12 Stream.Free; 13 end; 14 end; 15 16 procedure LoadFromField(FField: TBlobField; Form: TComponent); 17 var 18 Stream: TBlobStream; 19 I: integer; 20 begin 21 try 22 Stream := TBlobStream.Create(FField, bmRead); 23 try 24 {delete all components} 25 for I := Form.ComponentCount - 1 downto 0 do 26 Form.Components[I].Free; 27 Stream.ReadComponentRes(Form); 28 finally 29 Stream.Free; 30 end; 31 except 32 on EFOpenError do {nothing} 33 ; 34 end; 35 end;