Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > FilerHelper > Classes > TWriterHelper > Methods

TWriterHelper.WritePersistent(TPersistent) Method

Scroll Prev Top Next More

Writes the TPersistent object specified by Instance to a stream

Use the WritePersistent method when you want to write a defined property (specified by TFiler.DefineProperties method) that is a TPersistent to a stream
 

Namespace: FilerHelper

Parameters

Instance

Type: TPersistent

Then, create your reader procedure and writer procedures:

Delphi

procedure TMyComponent.ReadMyProp(Reader: TReader);
 begin
   Reader.ReadPersistent(FMyProp);
 end;
 procedure TMyComponent.WriteMyProp(Writer: TWriter);
 begin
   Writer.WritePersistent(FMyProp);
 end;

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb