Re: [Lazarus] Problem working with Params in TSQLQuery

2008-08-18 Thread Michael Van Canneyt


On Mon, 18 Aug 2008, Eduardo Lopez wrote:

 The scenario:
 
 Lazarus 0.9.25   svn: 16095M
 fpc 2.2.2
 Ubuntu 8.04 GTK2
 SQLDb components
 TIBConnection
 
 The following query works well:
 
 qry02.SQL.Clear;
 qry02.SQL.Text:= 'select PASSWOR from USUARIOS where CODUSU = ' + 
 chr(39) + trim(pUsuario) + chr(39);
 trn02.Active:=true;
 qry02.Open;
 ContrasenaDB:=qry02.FieldByName('PASSWOR').AsString; // -- 
 ContrasenaDB get the value from the query

 
 But this one don't get the value of 'PASSWOR':
 
 qry02.SQL.Clear;
 qry02.SQL.Text:= 'select PASSWOR from USUARIOS where CODUSU = :pCODUSU';
 qry02.Params.ParamByName('pCODUSU').AsString:= trim(pUsuario);
 trn02.Active:=true;
 qry02.Open;
 ContrasenaDB:=qry02.FieldByName('PASSWOR').AsString;// --- 
 ContrasenaDB is empty
 
 (The second code was working with fpc 2.2.0 and the UIB components, with 
 some changes. When upgrade to fpc 2.2.2 i began to replace de UIB with 
 the default SQLDb componentes).

I have parameters working. Is the ParseSQL property set to 'True' ?

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport, again.

2008-08-18 Thread Mattias Gärtner
Zitat von Michael Van Canneyt [EMAIL PROTECTED]:



 On Sun, 17 Aug 2008, Jesus Reyes wrote:

  
   I've been playing about with it for a couple of hours,
   and start wondering if anyone has
   ever been able to make a working report with it, it is
   extremely unstable... ?
 
  The problem above was introduced in latest patch of LazReport, IMO it works
 much better now but it doesn't mean that everything it's working all fine,
 and the true is that some times while fixing something another one get bad
 side effects, lack of time to test on all widgetsets which doesn't work
 exactly the same on every single detail makes difficult to track down all
 flaws. Also, I don't agree that it's extremely unstable but I do agree that
 it doesn't work all good in all widgetsets, yet.
 

 I haven't been able to create a single report, dropping a band on the
 report is simply impossible. I tried during the whole day, and got nowhere,
 hence my impression that it is very unstable... :(

  For the moment this one should fixed in r16090.

 Thank you very much,
 I will test tomorrow. Hopefully it will be better :-)

I fixed a gtk1 bug and improved the laz report object inspector moving.

Mattias

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport, again.

2008-08-18 Thread Michael Van Canneyt


On Mon, 18 Aug 2008, Mattias Gärtner wrote:

 Zitat von Michael Van Canneyt [EMAIL PROTECTED]:
 
 
 
  On Sun, 17 Aug 2008, Jesus Reyes wrote:
 
   
I've been playing about with it for a couple of hours,
and start wondering if anyone has
ever been able to make a working report with it, it is
extremely unstable... ?
  
   The problem above was introduced in latest patch of LazReport, IMO it 
   works
  much better now but it doesn't mean that everything it's working all fine,
  and the true is that some times while fixing something another one get bad
  side effects, lack of time to test on all widgetsets which doesn't work
  exactly the same on every single detail makes difficult to track down all
  flaws. Also, I don't agree that it's extremely unstable but I do agree 
  that
  it doesn't work all good in all widgetsets, yet.
  
 
  I haven't been able to create a single report, dropping a band on the
  report is simply impossible. I tried during the whole day, and got nowhere,
  hence my impression that it is very unstable... :(
 
   For the moment this one should fixed in r16090.
 
  Thank you very much,
  I will test tomorrow. Hopefully it will be better :-)
 
 I fixed a gtk1 bug and improved the laz report object inspector moving.

Well, now I have high expectations for my testing tonight :)

Michael.___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem working with Params in TSQLQuery

2008-08-18 Thread Joost van der Sluis
Op maandag 18-08-2008 om 09:14 uur [tijdzone +0200], schreef Michael Van
Canneyt:
 
 On Mon, 18 Aug 2008, Eduardo Lopez wrote:
 
  The scenario:
  
  Lazarus 0.9.25   svn: 16095M
  fpc 2.2.2
  Ubuntu 8.04 GTK2
  SQLDb components
  TIBConnection
  
  The following query works well:
  
  qry02.SQL.Clear;
  qry02.SQL.Text:= 'select PASSWOR from USUARIOS where CODUSU = ' + 
  chr(39) + trim(pUsuario) + chr(39);
  trn02.Active:=true;
  qry02.Open;
  ContrasenaDB:=qry02.FieldByName('PASSWOR').AsString; // -- 
  ContrasenaDB get the value from the query
 
  
  But this one don't get the value of 'PASSWOR':
  
  qry02.SQL.Clear;
  qry02.SQL.Text:= 'select PASSWOR from USUARIOS where CODUSU = :pCODUSU';
  qry02.Params.ParamByName('pCODUSU').AsString:= trim(pUsuario);
  trn02.Active:=true;
  qry02.Open;
  ContrasenaDB:=qry02.FieldByName('PASSWOR').AsString;// --- 
  ContrasenaDB is empty
  
  (The second code was working with fpc 2.2.0 and the UIB components, with 
  some changes. When upgrade to fpc 2.2.2 i began to replace de UIB with 
  the default SQLDb componentes).
 
 I have parameters working. Is the ParseSQL property set to 'True' ?

That shoudn't make any difference. What if you use
params[0].asstring := ... ?

Joost

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-18 Thread Dominique Louis
Felipe Monteiro de Carvalho wrote:
 build it from the command line:
 
 sude make bigide
 
 or something similar. I work with subversion Lazarus, so the code is
 in my user directory and sudo isn't necessary.
 
Hi Felipe,
   will bigide build it as a Carbon application? Also when building 
via the command line, how can I ensure that Printer4Lazarus is installed 
without bigide?

Thanks,


Dominique.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-18 Thread Mattias Gärtner
Zitat von Dominique Louis [EMAIL PROTECTED]:

 Felipe Monteiro de Carvalho wrote:
  build it from the command line:
 
  sude make bigide
 
  or something similar. I work with subversion Lazarus, so the code is
  in my user directory and sudo isn't necessary.
 
 Hi Felipe,
will bigide build it as a Carbon application?

Yes if using 0.9.25, no if using 0.9.24.


 Also when building
 via the command line, how can I ensure that Printer4Lazarus is installed
 without bigide?

'make bigide' _is_ building via command line. It builds an IDE with a set of
common packages.

With 0.9.25 you can also build the IDE with 'your' set of packages via command
line:

./lazbuild --build-ide=


Mattias

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem working with Params in TSQLQuery

2008-08-18 Thread Rodney Pont
On Mon, 18 Aug 2008 02:01:14 -0300, Eduardo Lopez wrote:

The following query works well:

qry02.SQL.Clear;
qry02.SQL.Text:= 'select PASSWOR from USUARIOS where CODUSU = ' + 
chr(39) + trim(pUsuario) + chr(39);
trn02.Active:=true;
qry02.Open;
ContrasenaDB:=qry02.FieldByName('PASSWOR').AsString; // -- 
ContrasenaDB get the value from the query
   

But this one don't get the value of 'PASSWOR':

qry02.SQL.Clear;
qry02.SQL.Text:= 'select PASSWOR from USUARIOS where CODUSU = :pCODUSU';
qry02.Params.ParamByName('pCODUSU').AsString:= trim(pUsuario);
trn02.Active:=true;
qry02.Open;
ContrasenaDB:=qry02.FieldByName('PASSWOR').AsString;// --- 
ContrasenaDB is empty

The first one has quotes around the data string you are comparing
against, has the second one got the quotes too when it's passed to the
database?

-- 
Regards - Rodney Pont
E-mail by PMMail - [EMAIL PROTECTED]

really weird out of context words courtesy of PMMail's spellchecker


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem working with Params in TSQLQuery

2008-08-18 Thread Michael Van Canneyt


On Mon, 18 Aug 2008, Rodney Pont wrote:

 On Mon, 18 Aug 2008 02:01:14 -0300, Eduardo Lopez wrote:
 
 The following query works well:
 
 qry02.SQL.Clear;
 qry02.SQL.Text:= 'select PASSWOR from USUARIOS where CODUSU = ' + 
 chr(39) + trim(pUsuario) + chr(39);
 trn02.Active:=true;
 qry02.Open;
 ContrasenaDB:=qry02.FieldByName('PASSWOR').AsString; // -- 
 ContrasenaDB get the value from the query

 
 But this one don't get the value of 'PASSWOR':
 
 qry02.SQL.Clear;
 qry02.SQL.Text:= 'select PASSWOR from USUARIOS where CODUSU = :pCODUSU';
 qry02.Params.ParamByName('pCODUSU').AsString:= trim(pUsuario);
 trn02.Active:=true;
 qry02.Open;
 ContrasenaDB:=qry02.FieldByName('PASSWOR').AsString;// --- 
 ContrasenaDB is empty
 
 The first one has quotes around the data string you are comparing
 against, has the second one got the quotes too when it's passed to the
 database?

You should never put the quotes manually for parameters. The engine
will do so if it is required.

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport, again.

2008-08-18 Thread Mattias Gärtner
Zitat von Michael Van Canneyt [EMAIL PROTECTED]:

[...]

 On Mon, 18 Aug 2008, Mattias Gärtner wrote:

  Zitat von Michael Van Canneyt [EMAIL PROTECTED]:
 
  
  
   On Sun, 17 Aug 2008, Jesus Reyes wrote:
  

 I've been playing about with it for a couple of hours,
 and start wondering if anyone has
 ever been able to make a working report with it, it is
 extremely unstable... ?
   
The problem above was introduced in latest patch of LazReport, IMO it
 works
   much better now but it doesn't mean that everything it's working all
 fine,
   and the true is that some times while fixing something another one get
 bad
   side effects, lack of time to test on all widgetsets which doesn't work
   exactly the same on every single detail makes difficult to track down all
   flaws. Also, I don't agree that it's extremely unstable but I do agree
 that
   it doesn't work all good in all widgetsets, yet.
   
  
   I haven't been able to create a single report, dropping a band on the
   report is simply impossible. I tried during the whole day, and got
 nowhere,
   hence my impression that it is very unstable... :(
  
For the moment this one should fixed in r16090.
  
   Thank you very much,
   I will test tomorrow. Hopefully it will be better :-)
 
  I fixed a gtk1 bug and improved the laz report object inspector moving.

 Well, now I have high expectations for my testing tonight :)

:)
Keep in mind that gtk1 does not automatically capture the mouse like gtk2. This
means, if you drag too fast under gtk1 the lazreport OI will stop moving until
you move the move back over the OI.
I didn't test under 64bit.

Mattias

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport, again.

2008-08-18 Thread Michael Van Canneyt


On Mon, 18 Aug 2008, Mattias Gärtner wrote:

 Zitat von Michael Van Canneyt [EMAIL PROTECTED]:
 
 [...]
 
  On Mon, 18 Aug 2008, Mattias Gärtner wrote:
 
   Zitat von Michael Van Canneyt [EMAIL PROTECTED]:
  
   
   
On Sun, 17 Aug 2008, Jesus Reyes wrote:
   
 
  I've been playing about with it for a couple of hours,
  and start wondering if anyone has
  ever been able to make a working report with it, it is
  extremely unstable... ?

 The problem above was introduced in latest patch of LazReport, IMO it
  works
much better now but it doesn't mean that everything it's working all
  fine,
and the true is that some times while fixing something another one get
  bad
side effects, lack of time to test on all widgetsets which doesn't work
exactly the same on every single detail makes difficult to track down 
all
flaws. Also, I don't agree that it's extremely unstable but I do agree
  that
it doesn't work all good in all widgetsets, yet.

   
I haven't been able to create a single report, dropping a band on the
report is simply impossible. I tried during the whole day, and got
  nowhere,
hence my impression that it is very unstable... :(
   
 For the moment this one should fixed in r16090.
   
Thank you very much,
I will test tomorrow. Hopefully it will be better :-)
  
   I fixed a gtk1 bug and improved the laz report object inspector moving.
 
  Well, now I have high expectations for my testing tonight :)
 
 :)
 Keep in mind that gtk1 does not automatically capture the mouse like gtk2. 
 This
 means, if you drag too fast under gtk1 the lazreport OI will stop moving until
 you move the move back over the OI.

Ah... 
Luckily my brain does not work so fast that I could drag faster than GTK1 :-)

 I didn't test under 64bit.

Well, tonight it'll be tested under 64 bit :-)

Michael.___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Tom Verhoeff
How can you add your own template to be available for use when creating
a new project?

I would like to include a variation on Custom Program.

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math.  Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Graeme Geldenhuys
On Mon, Aug 18, 2008 at 3:44 PM, Tom Verhoeff [EMAIL PROTECTED] wrote:
 How can you add your own template to be available for use when creating
 a new project?

 I would like to include a variation on Custom Program.

I don't know if there is actual documentation on the steps...

What I did was to look at a rather simple example and customized it to
my needs. Have a look it the following location.

  lazarus/components/fpcunit/ide/


Regards,
 - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Michael Van Canneyt


On Mon, 18 Aug 2008, Tom Verhoeff wrote:

 How can you add your own template to be available for use when creating
 a new project?
 
 I would like to include a variation on Custom Program.

I have an article describing this, or you can use the project templates
(which is actually what the article describes)

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Mattias Gärtner
Zitat von Tom Verhoeff [EMAIL PROTECTED]:

 How can you add your own template to be available for use when creating
 a new project?

 I would like to include a variation on Custom Program.

See components/projecttemplates/README.txt

Mattias

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Graeme Geldenhuys
On Mon, Aug 18, 2008 at 4:16 PM, Mattias Gärtner
[EMAIL PROTECTED] wrote:

 See components/projecttemplates/README.txt

I've never actually tried that—until now.  That is a brilliant idea
and it works so well!  Yet again I learnt something new about Lazarus
IDE.  :-)


Regards,
 - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Michael Van Canneyt
 
 
 On Mon, 18 Aug 2008, Graeme Geldenhuys wrote:
 
  On Mon, Aug 18, 2008 at 4:16 PM, Mattias Gärtner
 [EMAIL PROTECTED] wrote:
 
  See components/projecttemplates/README.txt
 
 I've never actually tried that—until now.  That is a brilliant idea
 and it works so well!  Yet again I learnt something new about Lazarus
 IDE.  :-)

Since I am the implementor, I'm of course very glad to hear you say this :-)

But honest is honest, the idea I got from RemObjects, which uses
a similar idea in Delphi. So only half the credit is mine :-)

Michael.___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Michael Van Canneyt
 
 
 On Mon, 18 Aug 2008, Graeme Geldenhuys wrote:
 
  On Mon, Aug 18, 2008 at 4:16 PM, Mattias Gärtner
 [EMAIL PROTECTED] wrote:
 
  See components/projecttemplates/README.txt
 
 Hi Mattias,
 
 I'm playing a bit more with the project templates.  How is the
 project.ini file supposed to look like.  I read the readme file and
 created it as best, but Recurse doesn't work and neither does Exclude.
 
 Here is my project.ini file
 
 ---[ project.ini ]---
 [Project]
 Name=fpGUI Application (single file)
 Author=Graeme Geldenhuys
 Description=A simple single file GUI project.
 Recurse=1
 Exclude=.txt,.lps
 
This should be correct.

Note that excluded files are simply copied, they're just not parsed.

Concerning recurse:

line 405 of ProjectTemplates.pp contains

If (FindFirst(Dir+'*',0,Info)0) then

that should be
If (FindFirst(Dir+'*',0,Info)=0) then

Mattias, should I send a patch, or commit directly ?

Michael.___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Mattias Gärtner
Zitat von Michael Van Canneyt [EMAIL PROTECTED]:

 
 
  On Mon, 18 Aug 2008, Graeme Geldenhuys wrote:
 
   On Mon, Aug 18, 2008 at 4:16 PM, Mattias Gärtner
  [EMAIL PROTECTED] wrote:
  
   See components/projecttemplates/README.txt
 
  Hi Mattias,
 
  I'm playing a bit more with the project templates.  How is the
  project.ini file supposed to look like.  I read the readme file and
  created it as best, but Recurse doesn't work and neither does Exclude.
 
  Here is my project.ini file
 
  ---[ project.ini ]---
  [Project]
  Name=fpGUI Application (single file)
  Author=Graeme Geldenhuys
  Description=A simple single file GUI project.
  Recurse=1
  Exclude=.txt,.lps

 This should be correct.

 Note that excluded files are simply copied, they're just not parsed.

 Concerning recurse:

 line 405 of ProjectTemplates.pp contains

 If (FindFirst(Dir+'*',0,Info)0) then

 that should be
 If (FindFirst(Dir+'*',0,Info)=0) then

 Mattias, should I send a patch, or commit directly ?

Both. Send the patch directly to svn.

Mattias

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to add your own 'New Project' template?

2008-08-18 Thread Michael Van Canneyt


On Mon, 18 Aug 2008, Mattias Gärtner wrote:

  Concerning recurse:
 
  line 405 of ProjectTemplates.pp contains
 
  If (FindFirst(Dir+'*',0,Info)0) then
 
  that should be
  If (FindFirst(Dir+'*',0,Info)=0) then
 
  Mattias, should I send a patch, or commit directly ?
 
 Both. Send the patch directly to svn.

Well, the fuzzy logic unit in my brain interpreted this as a 'please commit 
directly'
so rev 16125 contains the fix. I changed the '*' to an AllFilesMask while I was 
at it.

Michael.___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazreport, again.

2008-08-18 Thread Michael Van Canneyt


On Mon, 18 Aug 2008, Michael Van Canneyt wrote:

  For the moment this one should fixed in r16090.

 Thank you very much,
 I will test tomorrow. Hopefully it will be better :-)
   
I fixed a gtk1 bug and improved the laz report object inspector moving.
  
   Well, now I have high expectations for my testing tonight :)
  
  :)
  Keep in mind that gtk1 does not automatically capture the mouse like gtk2. 
  This
  means, if you drag too fast under gtk1 the lazreport OI will stop moving 
  until
  you move the move back over the OI.
 
 Ah... 
 Luckily my brain does not work so fast that I could drag faster than GTK1 :-)
 
  I didn't test under 64bit.
 
 Well, tonight it'll be tested under 64 bit :-)

I am very happy to confirm that the bug is fixed, and that all works as
expected. And it seems I can drag faster than GTK1 can follow :-)

My thanks to Jesus and Mattias for the fast response.

After working a bit with it, as far as I can see, there are 3 issues:

1. Object inspector cannot be resized
2. Visibility of object inspector is lost after sessions (i.e. i must enable
it each time)
3. Page margins are not taken into a account. They are drawn in the
designer, but all objects fall outside the margins anyway.

Other than that, I've been able to make 2 reports already, without real
problems. Nice work !

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem working with Params in TSQLQuery

2008-08-18 Thread Eduardo Lopez
Joost van der Sluis escribió:
 Op maandag 18-08-2008 om 09:14 uur [tijdzone +0200], schreef Michael Van
 Canneyt:
   
 On Mon, 18 Aug 2008, Eduardo Lopez wrote:

 
 ave parameters working. Is the ParseSQL property set to 'True' ?
 

 That shoudn't make any difference. What if you use
 params[0].asstring := ... ?

 Joost
   

First, thanks all for yours reply.

The ParseSQL has no effect.

Joost, the change you suggest don't work too.

I isolate the problem doing a simple program and the problem remains.
Then make a copy of this simple program and change the components to 
Zeos. (6.6.3-stable) and works well.

I'll consider change the sqldb components for Zeos in my application as 
a possible solution. But the sqldb must be work (i think :-) ).

Thanks to all.

Eduardo.




___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem working with Params in TSQLQuery

2008-08-18 Thread Joost van der Sluis
Op maandag 18-08-2008 om 15:38 uur [tijdzone -0300], schreef Eduardo
Lopez:
 Joost van der Sluis escribió:
  Op maandag 18-08-2008 om 09:14 uur [tijdzone +0200], schreef Michael Van
  Canneyt:

  On Mon, 18 Aug 2008, Eduardo Lopez wrote:
 
  
  ave parameters working. Is the ParseSQL property set to 'True' ?
  
 
  That shoudn't make any difference. What if you use
  params[0].asstring := ... ?
 
  Joost

 
 First, thanks all for yours reply.
 
 The ParseSQL has no effect.
 
 Joost, the change you suggest don't work too.
 
 I isolate the problem doing a simple program and the problem remains.
 Then make a copy of this simple program and change the components to 
 Zeos. (6.6.3-stable) and works well.
 
 I'll consider change the sqldb components for Zeos in my application as 
 a possible solution. But the sqldb must be work (i think :-) ).

Offcourse, but then we have to find the problem. Parameters do work
here, also in the testsuite. What happens if you remove the 'trim' in
both cases? (Without the parameter and with?)

Joost

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-18 Thread Dominique Louis
I tried building from the command line using bigide, but I'm getting a 
range check error in guitestrunner.pas so the compilation aborts.

I'm using svn code and 2.3.1 fpc compiler.

Dominique.

Mattias Gärtner wrote:
 Zitat von Dominique Louis [EMAIL PROTECTED]:
 
 Felipe Monteiro de Carvalho wrote:
 build it from the command line:

 sude make bigide

 or something similar. I work with subversion Lazarus, so the code is
 in my user directory and sudo isn't necessary.

 Hi Felipe,
will bigide build it as a Carbon application?
 
 Yes if using 0.9.25, no if using 0.9.24.
 
 
 Also when building
 via the command line, how can I ensure that Printer4Lazarus is installed
 without bigide?
 
 'make bigide' _is_ building via command line. It builds an IDE with a set of
 common packages.
 
 With 0.9.25 you can also build the IDE with 'your' set of packages via command
 line:
 
 ./lazbuild --build-ide=
 
 
 Mattias

 

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Mac OS X L : TPrintDialog missing from Dialogs tab...

2008-08-18 Thread Vincent Snijders
Dominique Louis schreef:
 I tried building from the command line using bigide, but I'm getting a 
 range check error in guitestrunner.pas so the compilation aborts.
 

Turn off rangechecking.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Delphi Modbus Library

2008-08-18 Thread Marc Santhoff
Hi,

has anyone tried translating and using this one with fpc/lazarus?:

http://sourceforge.net/projects/delphimodbus

Regards,
Marc


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem working with Params in TSQLQuery

2008-08-18 Thread Eduardo Lopez
Joost van der Sluis escribió:
 I isolate the problem doing a simple program and the problem remains.
 Then make a copy of this simple program and change the components to 
 Zeos. (6.6.3-stable) and works well.

 I'll consider change the sqldb components for Zeos in my application as 
 a possible solution. But the sqldb must be work (i think :-) ).
 

 Offcourse, but then we have to find the problem. Parameters do work
 here, also in the testsuite. What happens if you remove the 'trim' in
 both cases? (Without the parameter and with?)
   
I tried and nothing happens.
I prepare the sample proyect, if someone want to see it and can find 
what stupid thing i'm doing... ;-)

http://www.sistemasrpm.com.ar/soporte/test_param.tar.g

TIA.
Eduardo.
 Joost

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
   

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus