Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-18 Thread michael . vancanneyt
On Tue, 18 Dec 2012, John wrote: TSchemaOption = (soPrependSchemaName,soIncludeSystemObjects); TSchemaOptions = set of TSchemaOption; Procedure GetTableNames(List : TStrings; Options : TSchemaOptions = []); I am not interested in schema information, but I can imagine some people are (the

Re: [fpc-pascal] Re: Documentation

2012-12-18 Thread michael . vancanneyt
On Tue, 18 Dec 2012, Reinier Olislagers wrote: On 18-12-2012 0:58, Graeme Geldenhuys wrote: There are other issues with the FPDoc Editor dialog though. Off the top of my head: As I think I said last year, there's also Laz DE/Lazarus Documentation Editor. As long as we're suggesting

Re: [fpc-pascal] Re: Documentation

2012-12-18 Thread michael . vancanneyt
On Tue, 18 Dec 2012, Graeme Geldenhuys wrote: On 18/12/12 11:15, michael.vancann...@wisa.be wrote: I applied the patch, thank you ! While we are at it, here is another patch for fpdoc - lying around for a while. http://bugs.freepascal.org/view.php?id=23425 Yes, I had looked at it,

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, LacaK wrote: 2) The simple way to get the schemas would be to simply 'select ... schemaname||'.'||relname as table_name ... from pg_stat_user_tables. This would be a change ONLY to the sql in pqconnection. (If worst comes to worst, I dare say could create my own

Re: [fpc-pascal] Brook 1.0 - A new framework for web was born

2012-12-17 Thread michael . vancanneyt
On Sun, 16 Dec 2012, Graeme Geldenhuys wrote: On 15/12/2012 21:22, Sven Barth wrote: Maybe because the authors prefered inline comments instead of fpdoc's XML files... A shame, because the more detailed the documentation, the more it obfuscates the code. eg: Documentation Insight, a

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, LacaK wrote: michael.vancann...@wisa.be wrote / napísal(a): On Mon, 17 Dec 2012, LacaK wrote: 2) The simple way to get the schemas would be to simply 'select ... schemaname||'.'||relname as table_name ... from pg_stat_user_tables. This would be a change ONLY to

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, LacaK wrote: But original question AFAIU was about: what should GetTableNames return (schema query can return multiple columns, but what column use when fill list of table names)? GetTableNames return list of table names into TStrings. Now only TABLE_NAME is returned.

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-17 Thread michael . vancanneyt
On Mon, 17 Dec 2012, Ludo Brands wrote: On 17/12/2012 10:45, michael.vancann...@wisa.be wrote: On Mon, 17 Dec 2012, LacaK wrote: Yes. May be, that I was not clear. My suggestion was 3+ fields in query: SCHEMA_NAME, TABLE_NAME, SCHEMA_TABLE_NAME (SCHEMA_NAME || '.' || TABLE_NAME) But

Re: [fpc-pascal] Registers in loops

2012-12-14 Thread michael . vancanneyt
On Fri, 14 Dec 2012, Jonas Maebe wrote: On 14 Dec 2012, at 09:26, patspiper wrote: On 13/12/12 21:51, denisgolovan wrote: Hi all Recently I discovered that fpc refuses to use registers in my loops even with optimization turned on (-O1,-O3 used). With the asm code commented out and

Re: [fpc-pascal] G+ community for Free Pascal and Lazarus

2012-12-11 Thread michael . vancanneyt
On Tue, 11 Dec 2012, Graeme Geldenhuys wrote: Hi Everybody, Google created a new Community feature in Google+. Below is a link to a community dedicated to Free Pascal and Lazarus. https://plus.google.com/communities/114860965042324270757 If you are on Google+, feel free to visit and join.

Re: [fpc-pascal] Property alias

2012-12-07 Thread michael . vancanneyt
On Fri, 7 Dec 2012, Krzysztof wrote: Hi, Interfaces can have aliases for functions: Function MyOtherFunction : Integer; Function IMyInterface.MyFunc = MyOtherFunction; Can normal object have aliases for properties? For example, TControl.Caption. I would like to publish this property

Re: [fpc-pascal] Coping a DataSet

2012-12-03 Thread michael . vancanneyt
On Mon, 3 Dec 2012, silvioprog wrote: Guys, Is Assign method implemented for dataset in FPC? No, it is not. Datasets differ wildly in how they access and store data. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] BSD

2012-11-21 Thread michael . vancanneyt
On Wed, 21 Nov 2012, Mark Morgan Lloyd wrote: Somebody's suggesting we ought to be at least looking at BSD. What's the preferred variant from FPC/Lazarus's POV: OpenBSD, FreeBSD etc.? I think Marco mainly uses FreeBSD. Michael. ___ fpc-pascal

Re: [fpc-pascal] Re: cannot make debugserver

2012-11-08 Thread michael . vancanneyt
On Wed, 7 Nov 2012, Graeme Geldenhuys wrote: On 07/11/2012 22:13, bsquared wrote: I like the tiOPF based Logging. Nice work. It is the most reliable logging framework I know. For example, the dbugintf unit in FPC has major issues when used under Windows. If you generate many messages

Re: [fpc-pascal] FPCUnit checking Single values

2012-11-02 Thread michael . vancanneyt
On Fri, 2 Nov 2012, ik wrote: Hello, I'm trying to check Single value. I'm doing the following: a := 1.1; b := 1.1; CheckEquals(a, b, Format('val %f does not equal %f', [a, b])); It reports an error, one of them are 1.1 and the other is 1,10 . I know about the possible drifts of floating

Re: [fpc-pascal] Subversion Client/Server Source

2012-10-24 Thread michael . vancanneyt
On Wed, 24 Oct 2012, Andrew Brunner wrote: Hi there, I'm exploring the possibility adding support for version control in the Aurawin project. I'm needing resources to subversion client/server source to estimate how much time it will take. Does anyone know of official protocol for

Re: [fpc-pascal] Subversion Client/Server Source

2012-10-24 Thread michael . vancanneyt
On Wed, 24 Oct 2012, Andrew Brunner wrote: On 10/24/2012 08:36 AM, michael.vancann...@wisa.be wrote: Why not use the library version of SVN ? This is how Tortoise does it, as far as I know. I think the focus then would shift to wrapping a library to hook into server over HTTP. I would

Re: [fpc-pascal] Subversion Client/Server Source

2012-10-24 Thread michael . vancanneyt
On Wed, 24 Oct 2012, Andrew Brunner wrote: On 10/24/2012 09:01 AM, michael.vancann...@wisa.be wrote: Well, the http transport uses WEBDAV. So search for the WEBDAV protocol, and you're set ? Michael. ___ fpc-pascal maillist -

Re: [fpc-pascal] TurboPower FlashFiler for Free Pascal

2012-10-23 Thread michael . vancanneyt
On Tue, 23 Oct 2012, Graeme Geldenhuys wrote: Hi, Yeah, a catchy title! ;-) I want to know if anybody here has ever used FlashFiler in Delphi. Was it a good product, and do you think it would be worth the effort porting it to Free Pascal? Or is FlashFiler simply too old and outdated. I

Re: [fpc-pascal] TurboPower FlashFiler for Free Pascal

2012-10-23 Thread michael . vancanneyt
On Tue, 23 Oct 2012, Sven Barth wrote: Am 23.10.2012 15:24, schrieb Graeme Geldenhuys: Hi, Yeah, a catchy title! ;-) I want to know if anybody here has ever used FlashFiler in Delphi. Was it a good product, and do you think it would be worth the effort porting it to Free Pascal? Or is

Re: [fpc-pascal] releasing commercial components as PPU files

2012-10-22 Thread michael . vancanneyt
On Mon, 22 Oct 2012, Graeme Geldenhuys wrote: Hi, Many Delphi components are sold as full source code, or slightly cheaper (or as trial) as compiled *.DCU files for a specific Delphi version. Could this work with FPC too? Can I release commercial components as PPU files for say FPC 2.6.0

Re: [fpc-pascal] releasing commercial components as PPU files

2012-10-22 Thread michael . vancanneyt
On Mon, 22 Oct 2012, Graeme Geldenhuys wrote: On 2012-10-22 14:15, michael.vancann...@wisa.be wrote: That will most probably not work, although maybe -Ur may provide a solution. Isn't -Ur a default compiler option in official releases? So a 'make all' in the FPC 2.6.0 source directory

Re: [fpc-pascal] releasing commercial components as PPU files

2012-10-22 Thread michael . vancanneyt
On Mon, 22 Oct 2012, Vincent Snijders wrote: 2012/10/22 Graeme Geldenhuys gra...@geldenhuys.co.uk: On 2012-10-22 14:36, michael.vancann...@wisa.be wrote: I am not sure whether they use the binary release of fpc, or if they compile their own for e.g. windows. If it is the latter, you're in

Re: [fpc-pascal] releasing commercial components as PPU files

2012-10-22 Thread michael . vancanneyt
On Mon, 22 Oct 2012, Vincent Snijders wrote: 2012/10/22 michael.vancann...@wisa.be: On Mon, 22 Oct 2012, Vincent Snijders wrote: I am more optimistic than Michael. Because the same source is used, the CRC is the same and no recompile is done. It also depends on the date of the .ppu ?

Re: [fpc-pascal] fpmake compiles the same unit multiple times

2012-10-17 Thread michael . vancanneyt
On Wed, 17 Oct 2012, Graeme Geldenhuys wrote: On 2012-10-17 11:17, Jonas Maebe wrote: fpmake does not know about unit dependencies, Ah OK. Thanks for the explanation. So if I ordered my units better in the fpmake program, then that might reduce the multiple compiling too. If you

Re: [fpc-pascal] fphttpclient close connection?

2012-10-16 Thread michael . vancanneyt
On Mon, 15 Oct 2012, waldo kitty wrote: i've noted that fphttpclient has a DefaultTimeout of 15 minutes... how can i close the connection after all data is received? That should happen by itself ? Keeping the connection open is currently not supported. The DefaultTimeOut is definitely

Re: [fpc-pascal] Using database-specific functionality with TSQLConnector

2012-10-04 Thread michael . vancanneyt
On Tue, 2 Oct 2012, Reinier Olislagers wrote: Hi list, IBConn:TIBConnection; ... IBConn:=TIBConnection(FConn.ProxyConnection); IBConn.UserName:=FConn.UserName; IBConn.Password:=FConn.Password; IBConn.DatabaseName:=FConn.DatabaseName; ... IBConn.CreateDB; Is that the best/easiest way?

Re: [fpc-pascal] Assigning pointer address

2012-10-01 Thread michael . vancanneyt
On Mon, 1 Oct 2012, dhkblas...@zeelandnet.nl wrote: Hi Tomas, Thanks for clarifying. I will use PtrUInt to store the pointer address in. BTW: the documentation it says not to use PtrInt because it's signed and therefore smaller than a pointer (as in max value). Also there seems to be an

Re: [fpc-pascal] Re: Assigning pointer address

2012-10-01 Thread michael . vancanneyt
On Mon, 1 Oct 2012, Reinier Olislagers wrote: On 1-10-2012 13:55, dhkblaszyk-47ckw973qwsgtviba+r...@public.gmane.org wrote: On 1 okt '12, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Mon, 1 Oct 2012, dhkblas...@zeelandnet.nl

Re: [fpc-pascal] Re: Assigning pointer address

2012-10-01 Thread michael . vancanneyt
On Mon, 1 Oct 2012, dhkblas...@zeelandnet.nl wrote: fpc-pascal maillist - fpc-pascal@lists.freepascal.org [5] http://lists.freepascal.org/mailman/listinfo/fpc-pascal [6] Nah, I wasn't thinking about letting fpdoc predict anything. Instead though it would be nice to introduce something

Re: [fpc-pascal] Re: Assigning pointer address

2012-10-01 Thread michael . vancanneyt
On Mon, 1 Oct 2012, Tomas Hajny wrote: IIUC, size PtrUint varies by architecture, which is more or less the point of PtrUint. Having this variation documented as Darius suggested above makes things much clearer, because the programmer may be working on one platform and programming for

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Graeme Geldenhuys wrote: Hi, Somebody in the fpGUI support newsgroup raised an issue when using BOM, XMLRead units under Linux. Does the use of the DOM, XMLRead and XMLWrite units in FCL (from FPC 2.6.0) require the use of cwstring under Linux? XMLRead uses it, yes.

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Reinier Olislagers wrote: Hi list, Is there existing code available for getting fpcunit test results into a database? Otherwise I'm thinking of writing an XML importer that gets the test results and imports them into a database... handy for regression testing, I'd

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Graeme Geldenhuys wrote: On 2012-09-28 09:41, michael.vancann...@wisa.be wrote: XMLRead uses it, yes. Umm, so how would that affect applications that normally use UTF-8 packed in AnsiString? Like fpGUI and LCL based applications. It depends on the encoding of the

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Graeme Geldenhuys wrote: On 2012-09-28 10:01, michael.vancann...@wisa.be wrote: I'm also not sure how using cwstring unit would affect fpGUI apps that use UTF-8 inside AnsiString containers. (just like LCL does) It all depends on the XML. Sorry, I'm not very versed

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Reinier Olislagers wrote: On 28-9-2012 10:43, Graeme Geldenhuys wrote: On 2012-09-28 09:18, Reinier Olislagers wrote: Is there existing code available for getting fpcunit test results into a database? No, but the Test Listener interface makes such an addition very

Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-25 Thread michael . vancanneyt
On Tue, 25 Sep 2012, Reinier Olislagers wrote: On 24-9-2012 18:43, Michael Van Canneyt wrote: On Mon, 24 Sep 2012, Reinier Olislagers wrote: On 24-9-2012 17:22, michael.vancanneyt-0is9kj9sb0a-xmd5yjdbdmrexy1tmh2...@public.gmane.org wrote: On Mon, 24 Sep 2012, Reinier Olislagers wrote:

Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-25 Thread michael . vancanneyt
On Tue, 25 Sep 2012, Reinier Olislagers wrote: That is indeed another approach that doesn't require specs nor docs. Unfortunately only available to those that have the keys to kingdom :) Well, I think that trying to let TSDFDataset conform to certain SDF specs is trying to do some

Re: [fpc-pascal] Re: SDFDataset users!?

2012-09-25 Thread michael . vancanneyt
On Tue, 25 Sep 2012, Reinier Olislagers wrote: On 25-9-2012 10:11, michael.vancann...@wisa.be wrote: On Tue, 25 Sep 2012, Reinier Olislagers wrote: On 24-9-2012 18:43, Michael Van Canneyt wrote: On Mon, 24 Sep 2012, Reinier Olislagers wrote: On 24-9-2012 17:22,

Re: [fpc-pascal] SDFDataset users!?

2012-09-24 Thread michael . vancanneyt
On Mon, 24 Sep 2012, Reinier Olislagers wrote: Hi list, There are some bugs open for sdfdataset, e.g. 22894 Sdfdataset: empty file with FirstLineAsSchema reports Recordcount 1 instead of 0 22882 SDFDataset .AllowMultiLine does not support multiline import I've written a test suite to check

Re: [fpc-pascal] Firebird: bulk insert performance: suggestions?

2012-09-07 Thread michael . vancanneyt
On Fri, 7 Sep 2012, Reinier Olislagers wrote: For my Dutch postcode program https://bitbucket.org/reiniero/postcode with an embedded Firebird 2.5 database, I allow users to read in a CSV file with new or updated postcode data. I use sqldb, FPC x86. I'd like to get your suggestions on speed

Re: [fpc-pascal] Re: Firebird: bulk insert performance: suggestions?

2012-09-07 Thread michael . vancanneyt
On Fri, 7 Sep 2012, Reinier Olislagers wrote: On 7-9-2012 13:12, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Fri, 7 Sep 2012, Reinier Olislagers wrote: then the transaction is started (if it is inactive) and the query parameters are filled (using Query.Params.ParamByName, but

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2012-08-30 Thread michael . vancanneyt
On Wed, 29 Aug 2012, Arioch wrote: Florian Klämpfl wrote This is the prototypical way to run a function over each element in a collection, returning the results. (map (lambda (x) (+ x 1)) '(1 2 3)) - (2 3 4) I still don't see why this cannot be done by procedure variables: one can

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2012-08-30 Thread michael . vancanneyt
On Thu, 30 Aug 2012, Arioch wrote: Ralf A. Quint wrote At 12:09 AM 8/30/2012, michael.vancanneyt@ wrote: They are IMHO a negation of what pascal stands for. If your programming +1 Well, the same should be told about everything modern pascal is. Open and dynamic arrays, pointer math,

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2012-08-30 Thread michael . vancanneyt
On Thu, 30 Aug 2012, Arioch wrote: If the new features conform to the readability [snip] But afterall i am quitting on that. Since FPC are lacking closures i am sure here are mostly people who personally dislike them. I wanted to document why closures are good and do matter. Hopefully

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2012-08-30 Thread michael . vancanneyt
On Thu, 30 Aug 2012, Arioch wrote: From personal experience, when i first time saw how pascalish is closures implementation in Delphi i just admired the ease in which that concept was fused into the language of very different style built upon very different ideas. It was so elegant when

Re: [fpc-pascal] Easier fpmake

2012-08-23 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Tomas Hajny wrote: On 22 Aug 12, at 19:03, Michael Van Canneyt wrote: Hi Michael, As you know, FPC uses fpmake to compile everything in packages. As I've been steadily improving fcl-passrc for fpdoc, (it's now almost on par with the compiler, barring errors and

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Martin wrote: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool pas2ut which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least

Re: [fpc-pascal] TSQLDBLibraryLoader committed for SQLDB

2012-08-22 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Ludo Brands wrote: After recent discussions about which library to load when loading DB client libraries, I changed the default names for Firebird, MySQL, Postgres. That was well in time ;) Thanks. Another little bug and patch in

Re: [fpc-pascal] TSQLDBLibraryLoader committed for SQLDB

2012-08-22 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Ludo Brands wrote: (In the IDE: drop, set connector type from picklist, maybe change library name, set to enabled). I'm having some problems using this in the IDE. The picklist is empty. Probably something missing in procedure

Re: [fpc-pascal] TSQLDBLibraryLoader committed for SQLDB

2012-08-22 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Ludo Brands wrote: There are more problems: the library name is not cross-platform, so the project will no longer be cross-platform. Which is a far more serious problem, IMHO. (and one which would exist even if I had followed your suggestion of implementing the property

Re: [fpc-pascal] Possible RTFM question: is there something like an IsRootPath() function?

2012-08-19 Thread michael . vancanneyt
On Mon, 20 Aug 2012, Bart wrote: Hi, Does fpc have a function that determines if a given paths is the root (e.g. '/' in Linux, 'F:\' in Windows)? I could not find such a thing. There is no such function. Michael. ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 12-8-2012 10:35, Reinier Olislagers wrote: In my (Windows) SVN fpc installs, I can find the fpdoc executable both under the bin directory as well as utils\fpdoc However, I've only found fpdoc.css in utils\fpdoc (and a different one in

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 9:46, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 12-8-2012 10:35, Reinier Olislagers wrote: In my (Windows) SVN fpc installs, I can find the fpdoc executable both under the bin directory

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 10:31, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 9:46, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 12-8-2012 10:35, Reinier Olislagers

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 10:43, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 10:31, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 9:46,

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 11:34, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: in packages\fcl-res\xml) but not in the bin directory. IIRC, fpdoc picks up fpdoc.css when generating HTML/CHM output. Shouldn't fpdoc.css be also

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 13:50, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 11:34, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: in

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 14:40, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 13:50, michael.vancanneyt-0is9kj9sb0a-xmd5yjdbdmrexy1tmh2...@public.gmane.org wrote: On Tue, 14 Aug 2012,

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Tomas Hajny wrote: On Tue, August 14, 2012 15:15, michael.vancann...@wisa.be wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012 14:40, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Tue, 14 Aug 2012, Reinier Olislagers wrote: On 14-8-2012

Re: [fpc-pascal] Re: fpdoc executable both in bin and utils\fpdoc - but not fpdoc.css

2012-08-14 Thread michael . vancanneyt
On Tue, 14 Aug 2012, Tomas Hajny wrote: $PREFIX/share/doc/fpc-$fpcversion/ Seems like the reasonable thing, yes. Actually, the file is more a configuration file for fpdoc than its documentation, isn't it? From this point of view, shouldn't SysUtils.GetAppConfigDir serve as the most

Re: [fpc-pascal] WeekDay outdated?

2012-08-13 Thread michael . vancanneyt
On Mon, 13 Aug 2012, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: I am not able to use this function: http://www.freepascal.org/docs-html/rtl/dos/weekday.html nor can I find it in the sources. Does it still exist? If yes, how to use it? Which unit? DOS does not work.

Re: [fpc-pascal] Initialization of class field

2012-07-31 Thread michael . vancanneyt
On Tue, 31 Jul 2012, Krzysztof wrote: Hi, I'm reading about variable initialization (http://www.freepascal.org/docs-html/ref/refse22.html) . Can I initialize class field too? Like in Java: type TMyClass = class private FSomeField: Integer = 123; end; I always initialize this in

Re: [fpc-pascal] Generating templates with FPTemplate

2012-07-27 Thread michael . vancanneyt
On Fri, 27 Jul 2012, Luciano de Souza wrote: Michael, Your example is very clear. I am not very good to understand source codes. But this style seems to be very good and logical. It's really wonderful: FPC owns units for everything! Well, I use FPC for everything. So, I need tools for

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread michael . vancanneyt
On Wed, 18 Jul 2012, Mark Morgan Lloyd wrote: michael.vancann...@wisa.be wrote: On Wed, 18 Jul 2012, Mark Morgan Lloyd wrote: I was reminded of this when somebody was asking about portable signalling APIs the other day, but I think it's also relevant to discussion of e.g. how to pass a

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-18 Thread michael . vancanneyt
On Wed, 18 Jul 2012, Mark Morgan Lloyd wrote: michael.vancann...@wisa.be wrote: No need to apologize, I'm just curious where you got your info from. The implementation has been the same since day 1, which means your statement puzzles me. So instead of re-inventing the wheel, maybe have a

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal: Can't find unit ibconnection used

Re: [fpc-pascal] Should FCL documentation be splitted?

2012-07-06 Thread michael . vancanneyt
On Thu, 5 Jul 2012, leledumbo wrote: I would like to document some of the FCL, however the layout is still like the first time it appears in FPC. Current FCL are splitted into many subpackages, and since the number of units is HUGE (which I guess the same reason why the package was splitted)

Re: [fpc-pascal] Unhandled exception from library crashes host exe

2012-06-27 Thread michael . vancanneyt
On Wed, 27 Jun 2012, Antonio Fortuny wrote: Le 27/06/2012 15:58, kyan a écrit : I am sure that this has been asked before but I couldn't find an answer. I am in the process of porting a large application consisting of an exe and many dlls from Delphi7 to FPC 2.7.1/Lazarus for Windows/WinCE

Re: [fpc-pascal] Windows Phone 8 + pascal

2012-06-25 Thread michael . vancanneyt
On Mon, 25 Jun 2012, Sven Barth wrote: Am 24.06.2012 22:59 schrieb Juha Manninen juha.mannine...@gmail.com: On Sun, Jun 24, 2012 at 8:57 PM, Sven Barth pascaldra...@googlemail.com wrote: I believe they'll mostly go through the WinRT, which is Microsoft's new API pet project. Thanks.

Re: [fpc-pascal] Windows Phone 8 + pascal

2012-06-25 Thread michael . vancanneyt
On Mon, 25 Jun 2012, Sven Barth wrote: it as native. I guess it is faster than .NET code because it is not managed. I thought that .NET allows non-managed code, too. Why does COM-based + .NET-like metadata imply that it's not native code? The core libraries are written in either C or C++

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread michael . vancanneyt
On Wed, 20 Jun 2012, ik wrote: On Wed, Jun 20, 2012 at 8:33 AM, LacaK la...@zoznam.sk wrote: ** Class helpers would not help ? http://wiki.freepascal.org/Helper_types They can, but there is a protocol that I'm trying to create that provides me information what to execute (out of white

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread michael . vancanneyt
On Wed, 20 Jun 2012, ik wrote: On Wed, Jun 20, 2012 at 10:20 AM, michael.vancann...@wisa.be wrote: On Wed, 20 Jun 2012, ik wrote: On Wed, Jun 20, 2012 at 8:33 AM, LacaK la...@zoznam.sk wrote: ** Class helpers would not help ?

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-19 Thread michael . vancanneyt
On Tue, 19 Jun 2012, ik wrote: Hello, Is there a way to tell in run-time that a specific function/procedure should belong to a class ? For example, let's say I have the following class: Type TTest = class procedure Foo; end; And I have also: procedure Bar; ... end; Is there a way

Re: [fpc-pascal] Re: Playing sounds with standard components

2012-06-12 Thread michael . vancanneyt
On Tue, 12 Jun 2012, Reinier Olislagers wrote: On 9-6-2012 23:18, Jorge Aldo G. de F. Junior wrote: You can use OpenAL or SDL... Found a framework that apparently uses SDL. Says it plays OGG and WAV. Haven't tried it.. https://github.com/freezedev/elysion SDL is so easy, it's hardly

Re: [fpc-pascal] fpimage blur

2012-05-31 Thread michael . vancanneyt
On Thu, 31 May 2012, Mattias Gaertner wrote: Hi, Is there a function to blur an entire fpimage or a rectangular area? Not to my knowledge. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] InstantFPC and argv

2012-05-04 Thread michael . vancanneyt
On Fri, 4 May 2012, dhkblas...@zeelandnet.nl wrote: I'm creating a script to be executed by instantfpc when I noticed that paramstr(0) does not reflect the location of the script but the location of the cached executable. Is there a way to alter this location programatically to the script

Re: [fpc-pascal] InstantFPC and argv

2012-05-04 Thread michael . vancanneyt
On Fri, 4 May 2012, michael.vancann...@wisa.be wrote: On Fri, 4 May 2012, dhkblas...@zeelandnet.nl wrote: I'm creating a script to be executed by instantfpc when I noticed that paramstr(0) does not reflect the location of the script but the location of the cached executable. Is there a

Re: [fpc-pascal] SQLDB: logging all generated SQL?

2012-04-26 Thread michael . vancanneyt
On Thu, 26 Apr 2012, Reinier Olislagers wrote: Good morning list, I vaguely remember somebody mentioning SQLDB has the option of dumping to a log all the SQL it sends to the database (in other words: logging all SQL sent to the database). Can somebody tell me if that functionality is there

Re: [fpc-pascal] Compiling from and to memory

2012-04-20 Thread michael . vancanneyt
On Thu, 19 Apr 2012, OBones wrote: Hello all, I'm currently creating a build chain where FPC is the last step, the one producing a DLL for Windows, x86 and x64. In front of it in the chain, I have designed a generator that creates a program and a set of units from its own representation.

Re: [fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread michael . vancanneyt
On Thu, 19 Apr 2012, Reinier Olislagers wrote: On 19-4-2012 15:02, Ludo Brands wrote: Ludo here I do not understand what do you want to say. may be, that my english is not so good ;-) Can you explain please what is your proposal regarding to stIndexes ? stIndexes is currently not

Re: [fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread michael . vancanneyt
On Thu, 19 Apr 2012, Reinier Olislagers wrote: On 19-4-2012 15:37, michael.vancann...@wisa.be wrote: On Thu, 19 Apr 2012, Reinier Olislagers wrote: On 19-4-2012 15:02, Ludo Brands wrote: Ludo here I do not understand what do you want to say. may be, that my english is not so good ;-)

Re: RE : [fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQL for indexesetc?

2012-04-19 Thread michael . vancanneyt
On Thu, 19 Apr 2012, Ludo Brands wrote: Has anybody used this functionality in sqldb at all? No. For a simple reason: I implemented all this information in fpdatadict; I think it belongs more there, and definitely not in the basic data API. Some of the metadata are necessary in the

Re: [fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread michael . vancanneyt
On Thu, 19 Apr 2012, Reinier Olislagers wrote: Proposal 1. As I'm interested in getting support for MS SQL Server and Sybase ASE into lazdatadesktop, I propose I'll go on with trying to make that work using the current sqldb structure. This will mean that a lot of code will go into

Re: RE : RE : [fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQL forindexesetc?

2012-04-19 Thread michael . vancanneyt
On Thu, 19 Apr 2012, Ludo Brands wrote: But adding some aliases and add new features such as octet_length should not be a problem (NUMERIC_SCALE exists in precision). And where exist NUMERIC_PRECISION then? This is used in databases like Oracle that use numerics. A number(10,4) has

Re: RE : RE : [fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQL forindexesetc?

2012-04-19 Thread michael . vancanneyt
On Thu, 19 Apr 2012, Ludo Brands wrote: As for re-using existing terminology (schema data etc.), this is dangerous as it creates the expectation that the implementation conforms to a certain standard, which is what I want to avoid. (I don't believe I've ever used the word schema in

Re: [fpc-pascal] SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-17 Thread michael . vancanneyt
On Tue, 17 Apr 2012, Reinier Olislagers wrote: In sqldb, this: type TSchemaType = (stNoSchema, stTables, stSysTables, stProcedures, stColumns, stProcedureParams, stIndexes, stPackages); is used in the GetSchemaInfoSQL function: I noticed stIndexes, stProcedureParams and stPackages do not

Re: [fpc-pascal] Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-17 Thread michael . vancanneyt
On Tue, 17 Apr 2012, Reinier Olislagers wrote: On 17-4-2012 10:36, Reinier Olislagers wrote: In sqldb, this: type TSchemaType = (stNoSchema, stTables, stSysTables, stProcedures, stColumns, stProcedureParams, stIndexes, stPackages); is used in the GetSchemaInfoSQL function: I noticed

Re: [fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread michael . vancanneyt
On Wed, 4 Apr 2012, Leonardo M. Ramé wrote: Another tip for linux/unix. Try to run the CGI program from the command line, it should output something similar to this: Exception at 00497B3A: Exception: No REQUEST_METHOD passed from server. Otherwise there's an error in your code.

Re: [fpc-pascal] Re: CGI under Linux using FCL-Web

2012-04-04 Thread michael . vancanneyt
On Wed, 4 Apr 2012, Christian Kranich wrote: Hello All, 1) Sorry, I posted no follow ups but fress posts (twice) before noticing. Will not repeat this. 2) just tried testcgiapp --input=mycgi.cgi This also returns silently w/o any other output. The path to the htmls is also valid. Where and

[fpc-pascal] Re: [Lazarus] Library with XMLHttpRequest functionality?

2012-04-03 Thread michael . vancanneyt
On Tue, 3 Apr 2012, Frank Church wrote: Is there some library in FPC/Lazarus which implements XMLHTTPRequest functionality? XMLHTTPRequest is just a regular HTTP request. You can use the TFPHTTPClient component for it. Michael. ___ fpc-pascal

Re: [fpc-pascal] Re: Fileread function (leledumbo)

2012-04-02 Thread michael . vancanneyt
On Mon, 2 Apr 2012, Luis Fernando Del Aguila Mejía wrote: El 02/04/2012 05:00 a.m., fpc-pascal-requ...@lists.freepascal.org escribió: Do you mean if FileRead executed when the file pointer is at the end of file, it would wrap around to the beginning? Yes, it is possible? Example, is it

Re: [fpc-pascal] Re: How to handle SIGPIPE

2012-03-20 Thread michael . vancanneyt
On Tue, 20 Mar 2012, Tobias Giesen wrote: Hi, I think the biggest issue is that MSG_NOSIGNAL is not defined on MAC OS, even though it was added a few years (?) ago. When I ported Synapse, unfortunately I defined it as 0. Now I changed that to $2 and I'm hoping for the best ... I also

Re: [fpc-pascal] fpWeb: Error when trying to call a module without an action

2012-03-10 Thread michael . vancanneyt
On Fri, 9 Mar 2012, michael.vancann...@wisa.be wrote: On Fri, 9 Mar 2012, Sven Barth wrote: I'm using the embedded webserver variant and the error only surfaced after I added a second module which let's me assume that the problem is the same as this:

Re: [fpc-pascal] fpWeb: Error when trying to call a module without an action

2012-03-09 Thread michael . vancanneyt
On Fri, 9 Mar 2012, Sven Barth wrote: Hello together! As I already said on fpc-devel I'm currently playing around with fcl-web and hit the next problem: I successfully managed to build and run my first module, but when I added a second one I got an error when I use the following URL to

Re: [fpc-pascal] Trim(): incompatibility with Delphi

2012-03-06 Thread michael . vancanneyt
On Mon, 5 Mar 2012, Bart wrote: Hi, Brought up in Lazarus forums. Fpc Trim(): Trim whitespace from the ends of a string. Delphi Trim(): Trims leading and trailing spaces and control characters from a string. Depends on what you mean by whitespace, of course. FPC strips everything below

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-06 Thread michael . vancanneyt
On Tue, 6 Mar 2012, Zaher Dirkey wrote: On Mon, Mar 5, 2012 at 12:22 AM, Jonas Maebe jonas.ma...@elis.ugent.bewrote: This particular problem could obviously be resolved by adding a currency-specific version of abs() Can i ask to add overload function for ABS(Currency) be a feature

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-06 Thread michael . vancanneyt
On Tue, 6 Mar 2012, Jonas Maebe wrote: On 06 Mar 2012, at 13:05, michael.vancann...@wisa.be wrote: On Tue, 6 Mar 2012, Zaher Dirkey wrote: On Mon, Mar 5, 2012 at 12:22 AM, Jonas Maebe jonas.ma...@elis.ugent.bewrote: This particular problem could obviously be resolved by adding a

Re: [fpc-pascal] Re: Variant vs Pointer

2012-03-02 Thread michael . vancanneyt
On Fri, 2 Mar 2012, Marcos Douglas wrote: On Wed, Feb 29, 2012 at 10:38 PM, Marcos Douglas m...@delfire.net wrote: Hi, The TField class have the FValueBuffer: Pointer attribute and have also SetData(Buffer: Pointer,...) method that all T***Field subclasses use to set themselves. The methods

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-03-01 Thread michael . vancanneyt
On Thu, 1 Mar 2012, Frank Church wrote: On 29 February 2012 19:52, Michael Van Canneyt mich...@freepascal.orgwrote: On Wed, 29 Feb 2012, Reinier Olislagers wrote: On 29-2-2012 17:07, michael.vancanneyt-**0is9kj9s...@public.gmane.orgmichael.vancanneyt-0is9kj9s...@public.gmane.orgwrote:

  1   2   3   4   >