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

Reply via email to