-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Van Canneyt wrote:

>
> On Tue, 7 Mar 2006, Marco Meile wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> hi list, i have some questions about the Ini file management in
>> Lazarus.
>>
>> i tryed to
>>
>> ini := Tinifile.Create('foo.ini'); but does not work, and
>> extractfilepath works too not....
>
>
> The TIniFile always looks in the current directory. It definitely
> works, I use it a lot since years..
>
> Michael.


Procedure Tform1.formshow(Sender: Tobject);
var
sec:string;
path:string:
ini:tinifile:
begin
    init := Tinifile.create('notice.ini');
    try
       sec:= 'database';

    mysqldatabase1.hostname      :=
ini.readstring(Sec,'host','127.0.0.1');
    finally
    ini.freel;
    end;
end;


This is My Code, and this Does NOT work

i have not a reason, please help me :(

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEDfBC0dpLDHwyxxURAlWtAJ973RUsLBOzA4h8KtDrvYrDjDYM3QCfR6CN
SgypNyBwdsf69ien0gAu9Vo=
=4Fau
-----END PGP SIGNATURE-----

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

Reply via email to