[fpc-pascal] Problem with TSQLQuery

2007-01-16 Thread Volker Zipfel
Hi all, i've got a problem while reading a huge database table with TSQLQuery. The program consumes all the memory and is then terminated by the kernel. I think all read table rows are buffered. Is there a way to disable or limit the size of the buffer? Example: FQuery.SQL.Add('select * fro

Re: [fpc-pascal] Why this code fails

2007-01-16 Thread Jonas Maebe
On 16 jan 2007, at 15:55, Matt Emson wrote: The reason is that it tries to convert S to a number rather than V to a string. The error is still in the current 2.1.1. Does FPC have : function VarToStr(const V: Variant): string; As this is what I would tend to advocate for this kind os assig

Re: [fpc-pascal] Why this code fails

2007-01-16 Thread Jonas Maebe
On 16 jan 2007, at 15:55, Matt Emson wrote: The reason is that it tries to convert S to a number rather than V to a string. The error is still in the current 2.1.1. Does FPC have : function VarToStr(const V: Variant): string; As this is what I would tend to advocate for this kind os assig

Re: [fpc-pascal] Why this code fails

2007-01-16 Thread Matt Emson
> The reason is that it tries to convert S to a number rather than V to > a string. The error is still in the current 2.1.1. Does FPC have : function VarToStr(const V: Variant): string; As this is what I would tend to advocate for this kind os assignment anyway. M ___

Re: [fpc-pascal] Why this code fails

2007-01-16 Thread Jonas Maebe
On 16 jan 2007, at 14:04, Alexander Todorov wrote: This code compiles with 2.0.4 but gives runtime error 231 . program project1; {$mode objfpc}{$H+} uses Variants; var V : Variant; S : String = 'test '; begin V := 42; writeln(V); S := S + V; // fails here writeln(S); end. The r

[fpc-pascal] Why this code fails

2007-01-16 Thread Alexander Todorov
Hello, This code compiles with 2.0.4 but gives runtime error 231 . program project1; {$mode objfpc}{$H+} uses Variants; var V : Variant; S : String = 'test '; begin V := 42; writeln(V); S := S + V; // fails here writeln(S); end. the output is: [EMAIL PROTECTED]:~/temp/copy$ ./proj

Re: [fpc-pascal] FPC in DOS environment

2007-01-16 Thread Pierre Muller
> i use DOS regularly (right this moment, my 'lab' got messed up by a > foreign > handand i lost a AT power supply so no old PC running; this will get fixed > today) > > i will do my best to make it up to date and to help Pierre The current 2.0 fixes branch should be more stable. Could you p

Re: [fpc-pascal] function Copy is inconsistent with Delphi

2007-01-16 Thread Florian Klaempfl
Michael Van Canneyt schrieb: > > For dynamic arrays, I don't think FPC has a similar function. It has. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] where is the IsUniqueGlobalComponentName method.

2007-01-16 Thread Michael Van Canneyt
On Tue, 16 Jan 2007, Sam Washkansky wrote: > Hi guys, > > Does anybody know where I can find the IsUniqueGlobalComponentName method, > in Delphi 7 it is in the Classes unit. I am using a OPF, and Someone has > added a new method which makes use of this method. When I try and compile > the packa

Re: [fpc-pascal] function Copy is inconsistent with Delphi

2007-01-16 Thread Michael Van Canneyt
On Tue, 16 Jan 2007, Alexander Todorov wrote: > Hello, > i am converting a big Delphi project a part of uses a lexical parser. > It is dependent on the Copy function which in Delphi is declared: > > function Copy(S; Index, Count: Integer): string; > > and in FPC it is: > > function Copy(const

[fpc-pascal] where is the IsUniqueGlobalComponentName method. (part 2)

2007-01-16 Thread Sam Washkansky
Hi guys, Here is some extra info about the IsUniqueGlobalComponentName method it was taken from the Delphi 7 help file. "Indicates whether a proposed component name is unambiguous. Unit Classes Category streaming utilities Delphi syntax: function IsUniqueGlobalComponentName(const Name: string)

[fpc-pascal] where is the IsUniqueGlobalComponentName method.

2007-01-16 Thread Sam Washkansky
Hi guys, Does anybody know where I can find the IsUniqueGlobalComponentName method, in Delphi 7 it is in the Classes unit. I am using a OPF, and Someone has added a new method which makes use of this method. When I try and compile the package I get an "identifier is not found" error. does this

Re: [fpc-pascal] FPC in DOS environment

2007-01-16 Thread Daniel Franzini
On 1/12/07, Tomas Hajny <[EMAIL PROTECTED]> wrote: In general case when using plain DOS (when using virtual DOS machines provided by some other platforms like WinXX or OS/2, DPMI is provided directly by the platform and interface to it is part of the VDM kernel). The only "magic" is detection of

Re: [fpc-pascal] FPC in DOS environment

2007-01-16 Thread Daniel Franzini
thanks for the help On 1/11/07, Daniƫl Mantione <[EMAIL PROTECTED]> wrote: Well, help is certainly very welcome, but note that more is needed than one or two bug fixes. To make it a first platform again someone is needed who really uses Dos, so he quickly notes when something is wrong and ca

[fpc-pascal] function Copy is inconsistent with Delphi

2007-01-16 Thread Alexander Todorov
Hello, i am converting a big Delphi project a part of uses a lexical parser. It is dependent on the Copy function which in Delphi is declared: function Copy(S; Index, Count: Integer): string; and in FPC it is: function Copy(const s: string; FromPosition, ToPosition : integer): String; Why the

Re: [fpc-pascal] passing a class parameter as a const

2007-01-16 Thread Florian Klaempfl
Michael Van Canneyt schrieb: > > On Tue, 16 Jan 2007, Graeme Geldenhuys wrote: > >> On 1/12/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: >>> It makes no difference, except that you cannot do >>> >>> AObject:=SomeOtherObject; >>> >>> in the first case. >> Does Free Pascal work the same as De

Re: [fpc-pascal] passing a class parameter as a const

2007-01-16 Thread Michael Van Canneyt
On Tue, 16 Jan 2007, Graeme Geldenhuys wrote: > On 1/12/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > It makes no difference, except that you cannot do > > > > AObject:=SomeOtherObject; > > > > in the first case. > > Does Free Pascal work the same as Delphi 7 and earlier when you pass