Ok found it - TReader.OnError
If you set Handled=true then it continues to read the rest of the stream.
Mike

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mike Mueller
> Sent: Monday, 23 October 2000 9:49
> To: Multiple recipients of list delphi
> Subject: [DUG]: Trapping Property Read Errors
>
>
>
> I'm reading DFM's into objects at run-time & want to be able to 'ignore' a
> property in the DFM that does not exist anymore in the definition of the
> class.  Just like the IDE does when you have the wrong component package
> loaded and it goes "Property does not exist - Ignore, Ignore All, Cancel?"
>
> I see that there is a "FCanHandleExceptions" private variable in TFiler.
> But it's private!!!
> I also see that procedure I want to replace is
> "PropertyNotFound", but it's
> local & in the implementation section of Classes.pas.
>
> I know one alternative is to copy the TFiler.ReadProperty code
> and modify it
> in a decendant of TFiler - but it would be pretty ugly because
> ReadProperty
> is static & so I'd need to reimplement all the functions that
> call it etc...
>
> Anyone know anything about this?
>
> Thanks
> Mike
>
> (CC [EMAIL PROTECTED] in any replies please because I only seem
> to get 1/2
> of the messages sent to the list. thanks)
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to