[fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2009-11-27 Thread Graeme Geldenhuys
Hi, Most of the methods in TCgiApplication (located in cgiapp unit) is marked as deprecated. There is no documentation for this unit, so I do not know much about it. If all those methods are marked deprecated, what is replacing them? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2009-11-27 Thread Michael Van Canneyt
On Fri, 27 Nov 2009, Graeme Geldenhuys wrote: Hi, Most of the methods in TCgiApplication (located in cgiapp unit) is marked as deprecated. There is no documentation for this unit, so I do not know much about it. If all those methods are marked deprecated, what is replacing them? The whole

Re: [fpc-pascal] make CPU_TARGET=arm OS_TARGET=linux ignores both flags

2009-11-27 Thread ik
That did not added the cross compile to the tar. But I was able to work with it anyway using package manager (still playing with it, and when it will be ready I'll release it to AUR - arch linux community packages build). I have another problem. I'm trying to create an Hello world for OpenMoko

[fpc-pascal] private integer is an illegal counter variable

2009-11-27 Thread Juha Manninen
Hello, If I define a private integer: TDemo = class(TCustomApplication) private i: integer; ... and in a protected method I use it: for i := 0 to List.Count - 1 do ... then I get an error: Error: Illegal counter variable Moving it to method's var section helps. Method's

Re: [fpc-pascal] private integer is an illegal counter variable

2009-11-27 Thread Jonas Maebe
On 27 Nov 2009, at 15:49, Juha Manninen wrote: If I define a private integer: TDemo = class(TCustomApplication) private i: integer; ... and in a protected method I use it: for i := 0 to List.Count - 1 do ... then I get an error: Error: Illegal counter variable Moving it to

[fpc-pascal] Pascal grammar for FPC.

2009-11-27 Thread Pascal
Hello. In order to get translations from FPC to Ada language, I have updated P2Ada translator http://sourceforge.net/projects/p2ada. I add a new ObjP2Ada branch. The grammar is based on: reference guide for Free Pascal (FPC), version 2.2.4, March 2009 programmer's guide Turbo Pascal (TP),

[fpc-pascal] Split and Join

2009-11-27 Thread Juha Manninen
Hi, FPC's strutils or other libraries still don't have functions for splitting a string to a list and joining a list of strings again to one string, given a delimiter as a parameter. Something like: function Spit(Str: string; Delim: string; Result: TStringList): integer; and function

Re: [fpc-pascal] Split and Join

2009-11-27 Thread Juha Manninen
Hi, I can actually use TStringList's Delimiter and DelimitedText for basic splitting. This separates words of a text: List.Delimiter := ' '; List.DelimitedText := S; I have programmed with Delphi for years without knowing it. Now I found it with a google search. Should have waited a

Re: [fpc-pascal] Split and Join

2009-11-27 Thread Michael Van Canneyt
On Fri, 27 Nov 2009, Juha Manninen wrote: Hi, FPC's strutils or other libraries still don't have functions for splitting a string to a list and joining a list of strings again to one string, given a delimiter as a parameter. Something like: function Spit(Str: string; Delim: string; Result:

Re: [fpc-pascal] Split and Join

2009-11-27 Thread Mattias Gaertner
On Fri, 27 Nov 2009 20:11:25 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: On Fri, 27 Nov 2009, Juha Manninen wrote: Hi, FPC's strutils or other libraries still don't have functions for splitting a string to a list and joining a list of strings again to one string,

Re: [fpc-pascal] Split and Join

2009-11-27 Thread Michael Van Canneyt
On Fri, 27 Nov 2009, Mattias Gaertner wrote: On Fri, 27 Nov 2009 20:11:25 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: On Fri, 27 Nov 2009, Juha Manninen wrote: Hi, FPC's strutils or other libraries still don't have functions for splitting a string to a list and

Re: [fpc-pascal] Split and Join

2009-11-27 Thread Luca Olivetti
En/na Michael Van Canneyt ha escrit: Of course it does exist. Split can be implemented like this: List:=TStringList.Create; List.Delimiter:=Delim; List.StrictDelimiters:=True; List.DelimitedText:=Str; Never though of it. And join can be done too. Pity that delimiter is a single character.

[fpc-pascal] Re: Troubles with CGI and POST content

2009-11-27 Thread Sven Barth
Hi again! (So... let's see where this message ends up ^^) I tested your patch (with both i386 and x86_64), Joost and as far as I can tell the problem is solved. I'll check if I can spot the problem, too (I don't know when, though). Regards, Sven

Re: [fpc-pascal] private integer is an illegal counter variable

2009-11-27 Thread Frank Peelo
Jonas Maebe wrote: On 27 Nov 2009, at 15:49, Juha Manninen wrote: If I define a private integer: TDemo = class(TCustomApplication) private i: integer; ... and in a protected method I use it: for i := 0 to List.Count - 1 do ... then I get an error: Error: Illegal counter

Re: [fpc-pascal] private integer is an illegal counter variable

2009-11-27 Thread Juha Manninen
On perjantai, 27. marraskuuta 2009 23:52:30 Frank Peelo wrote: The reason is that a for-loop tries to make a number of reasonable guarantees that the counter variable cannot be modified during the loop. E.g., direct assignments to a counter variable are forbidden inside the loop (except in

Re: [fpc-pascal] private integer is an illegal counter variable

2009-11-27 Thread Juha Manninen
On lauantai, 28. marraskuuta 2009 00:49:25 Jonas Maebe wrote: On 27 Nov 2009, at 23:43, Juha Manninen wrote: I understand it is important to support also the old shortstring but it should be defined explicitly and string should always mean just one thing. ansistring and shortstring