Recent

Author Topic: Streaming components  (Read 3521 times)

clinique

  • New member
  • *
  • Posts: 9
Streaming components
« on: January 14, 2011, 04:26:14 pm »
I'm using TComponent descendant to stream them as text in files.
It works great but I can't understand why embedded components (also derived from tcomponents) are not streamed.

Exemple :

TSchema is streamed like this :
object TSchema
  Classe = 'control'
  Type_ = 'basic'
end

and THeader, wich is described as
THeader = class(TComponent)
...
 field1 : integer;
 fSchema : TSchema;
...
end;

is only streamed like this :

object THeader
  field1 = 1
end

I would have awaiting something like :

object THeader
  field1 = 1
  object TSchema
     Classe = 'control'
     Type_ = 'basic'
   end
end

What am I doing wrong ?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Re: Streaming components
« Reply #1 on: January 25, 2011, 10:38:12 am »
Did you publish the property Schema : TSchema read+write ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018