Re: [fpc-pascal] Mozilla XPCOM

2010-06-09 Thread Marcos Douglas
On Tue, Jun 8, 2010 at 3:44 PM, Luiz Americo Pereira Camara wrote: > Marcos Douglas escreveu: >> Exactly. >> Therefore I always used 'const' only at 'strings' params. I thought it >> had changed, but not.  ;-) > > It can be useful for record parameters also > If the record have strings, I think.

[fpc-pascal] how to use odbc Allow multiple statements

2010-06-09 Thread liuzg2
how to use odbc Allow multiple statements Connection mssql ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Negative RTL Error Codes in Some Platforms

2010-06-09 Thread Bihar Anwar
I look at the FPC RTL source codes and notice that in some OSes (e.g. OS/2, DOS) every RTL functions which call OS API functions will return the OS error code as a negative number. What is the reason behind this? I don't find such a convention in the official documentation of thouse OSes.

[fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-09 Thread Bihar Anwar
I don't see SysUtils.GetLastOSError() in DOS. Looking at a glance, I think it will be a trivial effort by just returning Dos.DosError variable content. Also, I notice that SysUtils.GetLastOSError() in MacOS is defined but it's implementation is empty. I've no knowledge on MacOS, so my question i

Re: [fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-09 Thread Tomas Hajny
On Thu, June 10, 2010 06:29, Bihar Anwar wrote: > I don't see SysUtils.GetLastOSError() in DOS. Looking at a glance, I think > it will be a trivial effort by just returning Dos.DosError variable > content. Thanks for the notification, I'll have a look at it (creating a bug report to make sure it i

Re: [fpc-pascal] how to use odbc Allow multiple statements

2010-06-09 Thread Michael Van Canneyt
Just use 2 TSQLQuery statements at once. Each will set up a connection to MySQL, as far as I remember. Michael. On Thu, 10 Jun 2010, liuzg2 wrote: how to use odbc Allow multiple statements Connection mssql ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] how to use odbc Allow multiple statements

2010-06-09 Thread Graeme Geldenhuys
Op 2010-06-10 08:23, Michael Van Canneyt het geskryf: > > Just use 2 TSQLQuery statements at once. Each will set up a connection to > MySQL, as far as I remember. [...maybe he meant the following...] Is there a SQL Script component in SqlDB? So that you can pass it a DDL script file which will c

Re: [fpc-pascal] Negative RTL Error Codes in Some Platforms

2010-06-09 Thread Tomas Hajny
On Thu, June 10, 2010 05:44, Bihar Anwar wrote: > I look at the FPC RTL source codes and notice that in some OSes (e.g. > OS/2, DOS) every RTL functions which call OS API functions will return the > OS error code as a negative number. What is the reason behind this? I > don't find such a convention

Re: [fpc-pascal] Missing GetLastOSError() in DOS and MacOS

2010-06-09 Thread Bihar Anwar
On June 10, 2010 1:00:27 PM, Tomas Hajny wrote: >... or whether it should return the last OS error for what OS function invoked recently (also directly without using RTL). Yes, I think this one is agreed with other similar RTL functions. __