[fpc-pascal] Re: Firebird Connection documentation: suggestions? remarks?

2011-11-21 Thread Reinier Olislagers
On 19-11-2011 14:21, Reinier Olislagers wrote: > Hi list, > > Please find attached my current version for the Interbase/Firebird > connection documentation source. If the attachment gets deleted by the > list or if you want to see the latest version, please go to > https://bitbucket.org/reiniero/f

[fpc-pascal] Re: Indy example returns Runtime Error (211)

2011-11-21 Thread Frank Church
On 20 November 2011 16:57, Frank Church wrote: > I am trying to use an Indy example from stackoverflow - > http://stackoverflow.com/questions/576538/delphi-how-to-get-all-local-ipsand > I always get Runtime Error (211). It is more of a language issue than a > network related question, which is w

Re: [fpc-pascal] Name of a var

2011-11-21 Thread Martin
On 21/11/2011 23:04, Rainer Stratmann wrote: Am Monday 21 November 2011 20:06:10 schrieb Jeppe Græsdal Johansen: It would most likely be very easy to implement, but what is the need? I am storing vars in a textfile like: mintemp: 300 maxtemp: 350 And so on ... I put the pointer to the var an

Re: [fpc-pascal] Name of a var

2011-11-21 Thread Rainer Stratmann
Am Monday 21 November 2011 20:06:10 schrieb Jeppe Græsdal Johansen: > Den 21-11-2011 13:56, Rainer Stratmann skrev: > > Is it possible to get information of the name of a var? > > > > For Example. > > > > var > > counter : longint; > > varname : shortstring; > > > > varname := nameofvar( counte

Re: [fpc-pascal] Name of a var

2011-11-21 Thread Jeppe Græsdal Johansen
Den 21-11-2011 13:56, Rainer Stratmann skrev: Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := nameofvar( counter ); The content of varname then is 'counter'. It would most likely be very easy to implement, but

Re: [fpc-pascal] Name of a var

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Rainer Stratmann wrote: Am Monday 21 November 2011 14:08:43 schrieb michael.vancann...@wisa.be: On Mon, 21 Nov 2011, Rainer Stratmann wrote: Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := n

Re: [fpc-pascal] Name of a var

2011-11-21 Thread Rainer Stratmann
Am Monday 21 November 2011 14:08:43 schrieb michael.vancann...@wisa.be: > On Mon, 21 Nov 2011, Rainer Stratmann wrote: > > Is it possible to get information of the name of a var? > > > > For Example. > > > > var > > counter : longint; > > varname : shortstring; > > > > varname := nameofvar( counter

Re: [fpc-pascal] Name of a var

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Rainer Stratmann wrote: Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := nameofvar( counter ); The content of varname then is 'counter'. There is no way in Pascal. Conceivably, you can make

[fpc-pascal] Name of a var

2011-11-21 Thread Rainer Stratmann
Is it possible to get information of the name of a var? For Example. var counter : longint; varname : shortstring; varname := nameofvar( counter ); The content of varname then is 'counter'. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Dimitrios Chr. Ioannidis
Hi, On 21/11/2011 2:32 μμ, Felipe Monteiro de Carvalho wrote: Hello, How did you generate that grid? You wrote your own html+javascript or are you using a ready made javascript library or something else? i just used the js from the example " source>\packages\fcl-web\examples\combined ". It u

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Dimitrios Chr. Ioannidis
On 21/11/2011 2:37 μμ, michael.vancann...@wisa.be wrote: On Mon, 21 Nov 2011, Dimitrios Chr. Ioannidis wrote: On 21/11/2011 1:28 μμ, michael.vancann...@wisa.be wrote: IE has a bug that causes it to report an error if the last element in an array or object is empty. (it is explicitly menti

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Marcos Douglas wrote: On Mon, Nov 21, 2011 at 9:32 AM, Felipe Monteiro de Carvalho wrote: Hello, How did you generate that grid? You wrote your own html+javascript or are you using a ready made javascript library or something else? I think he uses ExtJS library. Co

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Marcos Douglas
On Mon, Nov 21, 2011 at 9:32 AM, Felipe Monteiro de Carvalho wrote: > > Hello, > > How did you generate that grid? You wrote your own html+javascript or > are you using a ready made javascript library or something else? I think he uses ExtJS library. Marcos Douglas __

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Felipe Monteiro de Carvalho
Hello, How did you generate that grid? You wrote your own html+javascript or are you using a ready made javascript library or something else? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Dimitrios Chr. Ioannidis wrote: On 21/11/2011 1:28 μμ, michael.vancann...@wisa.be wrote: IE has a bug that causes it to report an error if the last element in an array or object is empty. (it is explicitly mentioned in the standard that it is allowed). So you should se

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Dimitrios Chr. Ioannidis
Hi again, in one hour that page had 56 hits !!! I'm thinking that there is a need the fcl-web examples to be live. The next days i'll setup as much of the examples as i can. Mean while you can test ( insert/delete/update ) as much as you want. regards, -- Dimitrios Chr. Ioannidis

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Dimitrios Chr. Ioannidis
On 21/11/2011 1:28 μμ, michael.vancann...@wisa.be wrote: IE has a bug that causes it to report an error if the last element in an array or object is empty. (it is explicitly mentioned in the standard that it is allowed). So you should search for a , in front of } and ] and remove it. Thx.

Re: [fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread michael . vancanneyt
IE has a bug that causes it to report an error if the last element in an array or object is empty. (it is explicitly mentioned in the standard that it is allowed). So you should search for a , in front of } and ] and remove it. Attached is a cleaned-up version of users.js, where I corrected 3

[fpc-pascal] FCL Web Combined Demo

2011-11-21 Thread Dimitrios Chr. Ioannidis
Hi all, i wanted to check the combined demo so i set it up to my server at http://demo.artesoft.gr/combined . As i'm newbie to javascript can someone check to see why doesn't work with IE ? With Firefox, Chrome, Safari worked. regards, -- Dimitrios Chr. Ioannidis ___

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Frank Church wrote: On 21 November 2011 10:06, wrote: The first paragraph indicate that in fact you should always use " around your values. And the last sentence should prompt anyone to go and read the CommaText docs. This is one of the things concocted to make lif

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread Frank Church
On 21 November 2011 10:06, wrote: > > > On Mon, 21 Nov 2011, Graeme Geldenhuys wrote: > > On 2011-11-21 11:17, michael.vancanneyt@w. wrote: >> >>> Where in the Delphi documentation does it mention that? I couldn't find any such reference in the Delphi 7 docs, and I thought FPC implemen

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-21 12:06, michael.vancann...@wisa.be wrote: > > But we're not here to discuss the merits/disadvantages of the Delphi > docs :-) Indeed. I double checked the FPC documentation, and it is perfectly clear and simple to understand. Makes me wonder why I even bothered to read the Delphi doc

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Graeme Geldenhuys wrote: On 2011-11-21 11:17, michael.vancanneyt@w. wrote: Where in the Delphi documentation does it mention that? I couldn't find any such reference in the Delphi 7 docs, and I thought FPC implements behaviour based on documented behaviour, not imple

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-21 11:17, michael.vancanneyt@w. wrote: >> Where in the Delphi documentation does it mention that? I couldn't find >> any such reference in the Delphi 7 docs, and I thought FPC implements >> behaviour based on documented behaviour, not implementation behaviour? > > Sure. See the 'Co

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Graeme Geldenhuys wrote: On 2011-11-21 10:28, michael.vancann...@wisa.be wrote: A space is always treated special. Where in the Delphi documentation does it mention that? I couldn't find any such reference in the Delphi 7 docs, and I thought FPC implements behaviour b

Re: Graeme: FBLIB blob segment size was: [fpc-pascal] Patch/Test BlobSegmentSize

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-20 11:55, Reinier Olislagers wrote: > > ... might/could/should that be enlarged to 65535? The change has been made in the latest FBLib code. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ _

Re: [fpc-pascal] Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant & performance

2011-11-21 Thread Reinier Olislagers
On 20-11-2011 10:31, Reinier Olislagers wrote: > On 19-11-2011 23:36, Michael Van Canneyt wrote: >> On Sat, 19 Nov 2011, Reinier Olislagers wrote: >>> On 19-11-2011 13:28, Reinier Olislagers wrote: I wonder >>> whether/what changes are required for reading blobs... > Patch attached; it applies agai

[fpc-pascal] Debugging ancient heap allocation

2011-11-21 Thread Mark Morgan Lloyd
Is it possible to use heaptrc to determine whether a pointer refers to a valid block on the heap, so that erroneous disposes can be silently ignored? Alternatively, is there an easy way of scrubbing heap when allocating and deallocating? Out of curiosity, I'm looking at some 1970s code written

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-21 10:28, michael.vancann...@wisa.be wrote: > > A space is always treated special. Where in the Delphi documentation does it mention that? I couldn't find any such reference in the Delphi 7 docs, and I thought FPC implements behaviour based on documented behaviour, not implementation

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, michael.vancann...@wisa.be wrote: On Mon, 21 Nov 2011, Frank Church wrote: adapterVals: TStringList adapterVals.Delimiter := ';'; adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; adapterVals[0] = '192.168.1.2' adapterVals[1] = '00:0E:08:E0:7C:E

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread Marco van de Voort
In our previous episode, Frank Church said: > adapterVals: TStringList > > adapterVals.Delimiter := ';'; > adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; > adapterVals[0] = '192.168.1.2' > adapterVals[1] = '00:0E:08:E0:7C:ED' > adapterVals[2] = 'Word' - this should be 'Wo

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread michael . vancanneyt
On Mon, 21 Nov 2011, Frank Church wrote: adapterVals: TStringList adapterVals.Delimiter := ';'; adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; adapterVals[0] = '192.168.1.2' adapterVals[1] = '00:0E:08:E0:7C:ED' adapterVals[2] = 'Word' - this should be 'Word Space' I

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-21 08:59, Frank Church wrote: > adapterVals: TStringList > > adapterVals.Delimiter := ';'; > adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; I take it this is a typo, and you ment to have the comma's as semi-colons. > adapterVals[2] = 'Word' - this should be