Re: [lazarus] Tinifile path (problem resolved)

2006-03-07 Thread Marco Meile
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Problem: cant connect to the server 127.0.0.1 resolution: the component TMySQLDatabase Cant connect to a IP Address, you need to use the Hostname, is very strange, or a bug? Greets marco -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Lin

Re: [lazarus] Tinifile path

2006-03-07 Thread Marco Meile
Michael Van Canneyt wrote: >On Tue, 7 Mar 2006, Marco Meile wrote: > > > yes i have rewritten for mail , is correct in the code. >>>OK, but what does not work ? >>> >>>It works fine here ? >>> >>>Michael. >>> >>> >>> >>> >>> >>mysqldatabase1.hostname eg, is

Re: [lazarus] Tinifile path

2006-03-07 Thread Michael Van Canneyt
On Tue, 7 Mar 2006, Marco Meile wrote: > >>yes i have rewritten for mail , is correct in the code. > >> > >> > > > >OK, but what does not work ? > > > >It works fine here ? > > > >Michael. > > > > > > > mysqldatabase1.hostname eg, is already empfy after insert the value. What is in the inifile

Re: [lazarus] Tinifile path

2006-03-07 Thread Marco Meile
Michael Van Canneyt wrote: >On Tue, 7 Mar 2006, Marco Meile wrote: > > > >>Michael Van Canneyt wrote: >> >> >> >>>On Tue, 7 Mar 2006, Marco Meile wrote: >>> >>> >>> >>> >>> Procedure Tform1.formshow(Sender: Tobject); var sec:string; path:string: ini:tinifile: be

Re: [lazarus] Tinifile path

2006-03-07 Thread Michael Van Canneyt
On Tue, 7 Mar 2006, Marco Meile wrote: > Michael Van Canneyt wrote: > > >On Tue, 7 Mar 2006, Marco Meile wrote: > > > > > > > >>Procedure Tform1.formshow(Sender: Tobject); > >>var > >>sec:string; > >>path:string: > >>ini:tinifile: > >>begin > >>init := Tinifile.create('notice.ini'); > >> > >

Re: [lazarus] Tinifile path

2006-03-07 Thread Marco Meile
hmmm, wtf? is this a joke? Alain Michaud wrote: >Hi, > > Tinifile works very well on linux! Here is an example on how I use it > > >function PowertuxAlreadyRun(RS:char): boolean; >var >FCFGFile : TINIFile; >... > >TMPStr := TUXHOMEDIRECTORY + '/ConfigurationFiles/PowerTux.cfg' ; >FCFGFile:= Ti

Re: [lazarus] Tinifile path

2006-03-07 Thread Marco Meile
thx, i love u Alain Michaud wrote: > Hi, > > Tinifile works very well on linux! Here is an example on how I use > it > > > function PowertuxAlreadyRun(RS:char): boolean; var FCFGFile : > TINIFile; ... > > TMPStr := TUXHOMEDIRECTORY + '/ConfigurationFiles/PowerTux.cfg' ; > FCFGFile:= Tinifile.crea

Re: [lazarus] Tinifile path

2006-03-07 Thread Alain Michaud
Hi, Tinifile works very well on linux! Here is an example on how I use it function PowertuxAlreadyRun(RS:char): boolean; var FCFGFile : TINIFile; ... TMPStr := TUXHOMEDIRECTORY + '/ConfigurationFiles/PowerTux.cfg' ; FCFGFile:= Tinifile.create(TMPStr); ... if RS = 'R' then begin {R}

Re: [lazarus] Tinifile path

2006-03-07 Thread Marco Meile
Here is my complete Procedure Src Code. http://www.rafb.net/paste/results/OKPJI562.html _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/

Re: [lazarus] Tinifile path

2006-03-07 Thread Marco Meile
Michael Van Canneyt wrote: >On Tue, 7 Mar 2006, Marco Meile wrote: > > > >>Procedure Tform1.formshow(Sender: Tobject); >>var >>sec:string; >>path:string: >>ini:tinifile: >>begin >>init := Tinifile.create('notice.ini'); >> >> > >This can't compile. it should be ini, not init ? > > yes

Re: [lazarus] Tinifile path

2006-03-07 Thread bobby
Marco Meile wrote: 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; e

Re: [lazarus] Tinifile path

2006-03-07 Thread Michael Van Canneyt
On Tue, 7 Mar 2006, Marco Meile wrote: > Procedure Tform1.formshow(Sender: Tobject); > var > sec:string; > path:string: > ini:tinifile: > begin > init := Tinifile.create('notice.ini'); This can't compile. it should be ini, not init ? > try >sec:= 'database'; > > mysqldataba

Re: [lazarus] Tinifile path

2006-03-07 Thread Marco Meile
-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('f

Re: [lazarus] Tinifile path

2006-03-07 Thread Michael Van Canneyt
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 TIniFil

[lazarus] Tinifile path

2006-03-07 Thread Marco Meile
-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 anyone can post a example code for read config stings from a ini fi