Re: [fpc-pascal] Mozilla XPCOM

2010-06-10 Thread Frank Peelo
On 09/06/10 15:50, Marcos Douglas wrote: 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 parame

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

2010-06-10 Thread Jonas Maebe
On 10 Jun 2010, at 06:29, Bihar Anwar wrote: 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 is... Is this by designed? "MacOS" in the RTL stands for "System 7.5 - Mac OS 9.2.x", i.e., the "cla

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

2010-06-10 Thread Michael Van Canneyt
On Thu, 10 Jun 2010, Graeme Geldenhuys wrote: 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

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

2010-06-10 Thread Bihar Anwar
On June 10, 2010 1:46:39 PM, Tomas Hajny wrote: >If I remember correctly, it's been done in order to differentiate standard >error codes (supposedly cross-platform and mostly inherited from TP/BP) >from all other error codes which may be triggered there and which are >completely platform specif

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

2010-06-10 Thread Bihar Anwar
June 10, 2010 3:03:45 PM, Jonas Maebe wrote: >"MacOS" in the RTL stands for "System 7.5 - Mac OS 9.2.x", i.e., the "classic >Mac OS" which preceded Mac OS X. I don't think the sysutils unit was ever completely ported for that platform. Thanks Jonas, your clarification strengthens my thought

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

2010-06-10 Thread Jonas Maebe
On 10 Jun 2010, at 12:13, Bihar Anwar wrote: Thanks Jonas, your clarification strengthens my thought before. I saw other several defects in MacOS SysUtils, just mention the implementation of FindNext: Result:=DoFind (Rslt); // whereas DoFind() is declared as a procedure How can that

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

2010-06-10 Thread Tomas Hajny
On Thu, June 10, 2010 12:01, Bihar Anwar wrote: > On June 10, 2010 1:46:39 PM, Tomas Hajny wrote: . . >>However, you shouldn't rely on the returned values >>too much anyway. > > No, I just rely on such a returned values in a very few cases. For > example, In Windows/OS2/DOS, when FindNext() encou

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

2010-06-10 Thread Bihar Anwar
On June 10, 2010 6:12:42 PM, Tomas Hajny wrote: >OK, this is a slightly different story then. Win32 API function FindFirst >(and thus also the Delphi function FindFirst provided in SysUtils) returns >the "search handle" (positive value) in case of a success and -1 in case >of an error. The implem

[fpc-pascal] would like to open source Ansi C parser

2010-06-10 Thread Albert Almeida
Hi, I've an Ansi C parser written in Delphi that has been lying around my HD for some time. It supports almost all language features and the preprocessor is almost complete too. I was wondering if there were any volunteers out there willing to continue development of this as an Open Source projec

Re: [fpc-pascal] would like to open source Ansi C parser

2010-06-10 Thread dmitry boyarintsev
On Fri, Jun 11, 2010 at 2:19 AM, Albert Almeida wrote: > I was wondering if there were any volunteers out there willing to > continue development of this as an Open Source project. This tool may > become a full fledged C Header to Pascal conversion tool. I've written an ObjC parser myself, but si

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

2010-06-10 Thread liuzg2
but can TSQLScript result as tdateset? 1: select top 1 * into #x from r_sale; select * from #x 2:declare @busno VARCHAR(10) select @busno='0001' CREATE TABLE #wareid .. select * from #wareid where bus...@busno ___ fpc-pascal maillist - fpc-pa

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

2010-06-10 Thread liuzg2
but can TSQLScript result as tdateset? 1: select top 1 * into #x from r_sale; select * from #x 2:declare @busno VARCHAR(10) select @busno='0001' CREATE TABLE #wareid .. select * from #wareid where bus...@busno ___ fpc-pascal maillist - fpc-pascal@l

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

2010-06-10 Thread Graeme Geldenhuys
Op 2010-06-11 03:50, liuzg2 het geskryf: > > can TSQLScript result as tdateset? As far as I know, from experience with a similar component not from SqlDB, such SQLScript components do not return a result. They are there to execute DDL-type scripts. Regards, - Graeme - -- fpGUI Toolkit - a