Thanks, it realy works.
I am probably too old to understand such constructions, it's over of
my imagination. I was certain objects in programming mirror the real
world. Such construction is like to get married and to select a wife
after a marriage. Strange....

Igor

On Dec 22, 2007 9:53 PM, ik <[EMAIL PROTECTED]> wrote:
> Try this:
>
> cfg: TXMLConfig.Create(nil);
> cfg.Filename := 'myconfig.xml';
>
> Ido
>
>
> On Dec 22, 2007 10:42 PM, Igor Pokorny <[EMAIL PROTECTED]> wrote:
> > Hello friends,
> > I would like to know how to open existing XML file for TXMLConfig.
> >
> > Thomas Zastrow's tutorial suggests to use
> >
> >  cfg := TXMLConfig.create('myconfig.xml');
> >
> > but the compilator complains because
> >
> > TXMLConfig = class(TComponent)
> > .....
> >     constructor Create(AOwner: TComponent); override;
> >
> > How can I assign Filename to object that doesn't exist yet?
> >
> > Have i missed something?
> >
> > Regards
> >
> > Igor
> >
> > _________________________________________________________________
> >      To unsubscribe: mail [EMAIL PROTECTED] with
> >                 "unsubscribe" as the Subject
> >    archives at http://www.lazarus.freepascal.org/mailarchives
> >
>
>
>
> --
> http://ik.homelinux.org/
>
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
>

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to