Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-19 Thread Toru Takubo
(2013/04/19 21:22), Marcos Douglas wrote: On Fri, Apr 19, 2013 at 4:26 AM, Toru Takubo wrote: Hi Dmitry, Thank you very much for your advice. I am sure your code should work, but unfortunately I can not modify the existing stored procedures. I will explain what I have been trying so far. Supp

[fpc-pascal] fcl-stl in 2.6.2 packaged release (not source code)

2013-04-19 Thread leledumbo
Recently someone asked me a question which I answer using fcl-stl units, however the OP who uses 2.6.2 installed using the installer said the compiler can't find those g* units. Another person reports the same thing on linux. Does 2.6.2 packaged release missing this package? Because it does in 2.6.

Re: [fpc-pascal] Re: How can retrive value from OUT parameter?

2013-04-19 Thread Toru Takubo
(2013/04/19 18:53), Reinier Olislagers wrote: On 19-4-2013 9:26, Toru Takubo wrote: With analogical thinking, I expected that the following might work for TSQLQuery in FPC: var r,i: Integer; DBQ: TSQLQuery; begin ... DBQ.SQL.Text:='IncValue :@Param'; DBQ.Params.CreateParam(ftInteg

[fpc-pascal] TSocketServer and DoDisconnect event?

2013-04-19 Thread silvioprog
Hi, Well, the TSocketServer has the event DoConnect, but, how to I know when a client is disconnected? (eg, when I kill a client with Ctrl+Alt+Del) I find a event such as DoDisconnect, but it doesn't exists. Thank you! -- Silvio Clécio My public projects - github.com/silvioprog ___

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-19 Thread dmitry boyarintsev
It appears that SQLdb doesn't support (MS) SQL variables. thanks, Dmitry On Fri, Apr 19, 2013 at 8:29 AM, Marcos Douglas wrote: > On Fri, Apr 19, 2013 at 9:22 AM, Marcos Douglas wrote: > > On Fri, Apr 19, 2013 at 4:26 AM, Toru Takubo > wrote: > >> Hi Dmitry, > >> > >> Thank you very much for

Re: [fpc-pascal] LLVM (again)

2013-04-19 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 19.04.2013 14:05, schrieb Sven Barth: Am 19.04.2013 14:02, schrieb Reimar Grabowski: Hi, I have read the discussions about FPC using LLVM and the reasons against it (which I fully understand and support). But a friend of mine called my attention to this: https://github.c

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-19 Thread Marcos Douglas
On Fri, Apr 19, 2013 at 9:22 AM, Marcos Douglas wrote: > On Fri, Apr 19, 2013 at 4:26 AM, Toru Takubo wrote: >> Hi Dmitry, >> >> Thank you very much for your advice. I am sure your >> code should work, but unfortunately I can not modify >> the existing stored procedures. >> >> I will explain what

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-19 Thread Marcos Douglas
On Fri, Apr 19, 2013 at 4:26 AM, Toru Takubo wrote: > Hi Dmitry, > > Thank you very much for your advice. I am sure your > code should work, but unfortunately I can not modify > the existing stored procedures. > > I will explain what I have been trying so far. > Suppose you are using the following

Re: [fpc-pascal] LLVM (again)

2013-04-19 Thread Reimar Grabowski
On Fri, 19 Apr 2013 14:06:44 +0200 Sven Barth wrote: > > If you would have read the discussion about LLVM you would know that > > emscripten was the reason that it was brought up the last time... ;) > Sorry, it should be "Since you have read ... you should know ..." It should be "If I had read

Re: [fpc-pascal] LLVM (again)

2013-04-19 Thread Reimar Grabowski
On Fri, 19 Apr 2013 15:06:38 +0300 Nikolay Nikolov wrote: > Actually, I think you can write an asm.js code generator for FPC. Going > through LLVM isn't necessary. Will look into it ASAP. This would be great. R. ___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] LLVM (again)

2013-04-19 Thread Sven Barth
Am 19.04.2013 14:05, schrieb Sven Barth: Am 19.04.2013 14:02, schrieb Reimar Grabowski: Hi, I have read the discussions about FPC using LLVM and the reasons against it (which I fully understand and support). But a friend of mine called my attention to this: https://github.com/kripken/emscript

Re: [fpc-pascal] LLVM (again)

2013-04-19 Thread Nikolay Nikolov
On 04/19/2013 03:02 PM, Reimar Grabowski wrote: Hi, I have read the discussions about FPC using LLVM and the reasons against it (which I fully understand and support). But a friend of mine called my attention to this: https://github.com/kripken/emscripten/wiki From what I have seen this is qu

[fpc-pascal] LLVM (again)

2013-04-19 Thread Reimar Grabowski
Hi, I have read the discussions about FPC using LLVM and the reasons against it (which I fully understand and support). But a friend of mine called my attention to this: https://github.com/kripken/emscripten/wiki From what I have seen this is quite an amazing project. And being in the process o

[fpc-pascal] Re: How can retrive value from OUT parameter?

2013-04-19 Thread Reinier Olislagers
On 19-4-2013 9:26, Toru Takubo wrote: > With analogical thinking, I expected that the following might work > for TSQLQuery in FPC: > > var > r,i: Integer; > DBQ: TSQLQuery; > begin > ... >DBQ.SQL.Text:='IncValue :@Param'; >DBQ.Params.CreateParam(ftInteger,'@RETURN_VALUE',ptResult); >

Re: [fpc-pascal] string memory management

2013-04-19 Thread Sven Barth
Am 19.04.2013 09:38, schrieb Xiangrong Fang: 2013/4/19 Michael Van Canneyt > 1. I don't know whether I have to MANUALLY free memory for these strings to prevent leak? Yes, if you work like this, you must do all that. You must free al

Re: [fpc-pascal] string memory management

2013-04-19 Thread Xiangrong Fang
2013/4/19 Michael Van Canneyt > > 1. I don't know whether I have to MANUALLY free memory for these strings to > >> prevent leak? >>> >> > Yes, if you work like this, you must do all that. You must free all > pointers in the list, and the strings they point to. > > But why not use TStringList ? It

Re: [fpc-pascal] string memory management

2013-04-19 Thread Sven Barth
Am 19.04.2013 06:36, schrieb Xiangrong Fang: Hi All, I'm studying how pascal manages strings. I wrote a simple test program: program stringtest; {$mode objfpc}{$H+} uses Classes, sysutils; function test: PString; var s : string; begin New(Result); Result^ := FloatToStr(Random); // s :=

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-19 Thread Toru Takubo
Hi Dmitry, Thank you very much for your advice. I am sure your code should work, but unfortunately I can not modify the existing stored procedures. I will explain what I have been trying so far. Suppose you are using the following stored procedure, --

Re: [fpc-pascal] string memory management

2013-04-19 Thread Michael Van Canneyt
On Fri, 19 Apr 2013, Flávio Etrusco wrote: On Fri, Apr 19, 2013 at 1:36 AM, Xiangrong Fang wrote: Hi All, I'm studying how pascal manages strings. I wrote a simple test program: program stringtest; {$mode objfpc}{$H+} uses Classes, sysutils; function test: PString; var s : string; begin