Re: [fpc-pascal] how to directly access field/record value of TBufDataSet?

2013-10-01 Thread Michael Van Canneyt
On Tue, 1 Oct 2013, Dennis Poon wrote: Since TBufDataSet is in-memory, to speed things up, how can I directly access the N'th record and M'th field's value as Variant? Simply said: You cannot. Can any one suggest an in-memory dataset in fpc/lazarus that allows direct access? Does

Re: [fpc-pascal] how to directly access field/record value of TBufDataSet?

2013-10-01 Thread Michael Van Canneyt
On Mon, 30 Sep 2013, Marcos Douglas wrote: On Mon, Sep 30, 2013 at 8:09 AM, Dennis Poon den...@avidsoft.com.hk wrote: Since TBufDataSet is in-memory, to speed things up, how can I directly access the N'th record and M'th field's value as Variant? [...] You can use buf.RecNo and

Re: [fpc-pascal] how to directly access field/record value of TBufDataSet?

2013-10-01 Thread LacaK
Dennis Poon wrote / napĂ­sal(a): Also, how do I use the procedure LoadFromStream(AStream : TStream; Format: TDataPacketFormat = dfAny)? Especially, I don't understand the TDataPacketFormat parameter. Using Format parameter you can signal to DatapacketReader in which format expect data

Re: [fpc-pascal] read cells contents from .xls file

2013-10-01 Thread Felipe Monteiro de Carvalho
The source code of fpspreadsheet is open ... just copy/paste/modifiy it for your needs: https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/fpspreadsheet/xlsbiff8.pas#l50 But BIFF8 is not a simple format, there is no simple answer to your question. It is encapsulated in a OLE Document

Re: [fpc-pascal] how to directly access field/record value of TBufDataSet?

2013-10-01 Thread Dennis Poon
Michael Van Canneyt wrote: On Tue, 1 Oct 2013, Dennis Poon wrote: Since TBufDataSet is in-memory, to speed things up, how can I directly access the N'th record and M'th field's value as Variant? Simply said: You cannot. Can any one suggest an in-memory dataset in fpc/lazarus that

Re: [fpc-pascal] how to speed up lazarus compilation and debugging

2013-10-01 Thread Michael Schnell
On 09/30/2013 06:33 PM, m...@rpzdesign.com wrote: especially an SSD solid state disk drive. Really ? I don't suppose all necessary files will exceed the cache of a decently equipped Linux PC. -Michael ___ fpc-pascal maillist -

Re: [fpc-pascal] how to speed up lazarus compilation and debugging

2013-10-01 Thread Mattias Gaertner
On Tue, 01 Oct 2013 10:01:55 +0200 Michael Schnell mschn...@lumino.de wrote: On 09/30/2013 05:38 PM, Dennis Poon wrote: It is faster on Linux but still way slower than Delphi 5 on windows. Allowing for multi-Arch, multi-OS, multi-GUI-infrastructure, cross-development etc does not come

Re: [fpc-pascal] how to speed up lazarus compilation and debugging

2013-10-01 Thread Michael Schnell
On 10/01/2013 11:16 AM, Mattias Gaertner wrote: Multi-GUI has nothing to do with the compiler. But with project compile and link time, as the LCL (including the unit interface sections) is more complex because of that. -Michael ___ fpc-pascal

Re: [fpc-pascal] GUI confusion

2013-10-01 Thread Graeme Geldenhuys
On 29/09/13 23:33, Patrick wrote: BTW, Would it be correct to compare LCL to WxWidgets ? In the sense that it is a meta-widget toolkit? Yes, that would be an accurate comparison. LCL and WxWidgets are a common front-end toolkit to other underlying GUI toolkits. This obviously has its pros and

Re: [fpc-pascal] how to speed up lazarus compilation and debugging

2013-10-01 Thread Graeme Geldenhuys
On 30/09/13 17:33, m...@rpzdesign.com wrote: Linux Fedora 14 x64 fully boots from power on in 30 seconds. Umm, my Ubuntu 12.04 used to boot in around 8 seconds from power on. I used a 450MB/s read/write SSD drive with an i7 CPU. :) These days boot times don't mean much to me, as my FreeBSD

Re: [fpc-pascal] GUI confusion

2013-10-01 Thread Michael Schnell
On 09/30/2013 12:25 PM, Graeme Geldenhuys wrote: All functionality works identical on all platforms, Which, regarding look and feel, does have pros and cons, depending on the users targeted. -Michael ___ fpc-pascal maillist -

Re: [fpc-pascal] how to directly access field/record value of TBufDataSet?

2013-10-01 Thread Michael Van Canneyt
On Tue, 1 Oct 2013, Dennis Poon wrote: Michael Van Canneyt wrote: On Tue, 1 Oct 2013, Dennis Poon wrote: Since TBufDataSet is in-memory, to speed things up, how can I directly access the N'th record and M'th field's value as Variant? Simply said: You cannot. Can any one suggest an

Re: [fpc-pascal] GUI confusion

2013-10-01 Thread Ben Smith
On Tue, Oct 1, 2013 at 10:48 AM, Michael Schnell mschn...@lumino.de wrote: On 09/30/2013 12:25 PM, Graeme Geldenhuys wrote: All functionality works identical on all platforms, Which, regarding look and feel, does have pros and cons, depending on the users targeted. Sometimes company

Re: [fpc-pascal] GUI confusion

2013-10-01 Thread Henry Vermaak
On Mon, Sep 30, 2013 at 11:25:34AM +0100, Graeme Geldenhuys wrote: On 29/09/13 23:33, Patrick wrote: BTW, Would it be correct to compare LCL to WxWidgets ? In the sense that it is a meta-widget toolkit? Yes, that would be an accurate comparison. LCL and WxWidgets are a common front-end

Re: [fpc-pascal] read cells contents from .xls file

2013-10-01 Thread John Lee
Thanks - as you say (with nice irony) it isn't a simple format, and I don't pretend to understand it, indeed it is 'doing my head in' - but I don't want to write .xls or do charts etc, just read some cells (only in in excel 2003, seems to be v11 according to help) - maybe my hope of a few lines,

[fpc-pascal] Re: read cells contents from .xls file

2013-10-01 Thread Reinier Olislagers
On 01/10/2013 13:15, John Lee wrote: Thanks - as you say (with nice irony) it isn't a simple format, and I don't pretend to understand it, indeed it is 'doing my head in' - but I don't want to write .xls or do charts etc, just read some cells (only in in excel 2003, seems to be v11 according

Re: [fpc-pascal] GUI confusion

2013-10-01 Thread Patrick
Hi Fred Yes ! I am evaluating both Lazarus and fpGUI. At the moment I am steering towards fpGUI. I like FLTK but I don't like C++ and the FLTK bindings are not so great. Understanding GTK or QT under the hood is a massive undertaking. So far fpGUI reminds me of FLTK(but it prettier) I can

[fpc-pascal] How to use tilog from tiopf2?

2013-10-01 Thread Graeme Geldenhuys
Hi Felipe, On Mon, Aug 1, 2011 at 2:56 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Does anyone know how to use this? I tryed googling, but didn't have much luck ... Rather late than never. ;-) In your .lpr file, add the tiLog unit to the uses clause, and

Re: [fpc-pascal] GUI confusion

2013-10-01 Thread Graeme Geldenhuys
On 01/10/13 11:07, Henry Vermaak wrote: With the obvious drawback that it doesn't respond to theme/accessibility changes. Audio accessibility is possible. I just recently had a developer implement that in his applications. He requested one or two small changes to fpGUI to accomplish that.

Re: [fpc-pascal] read cells contents from .xls file

2013-10-01 Thread John Lee
Thanks for all suggestions. IMO fpspread...pas is too complex for I'd need to hack thro' thousands of lines - maybe a simple program to read xls into csv, as in b) below could be added?. Here, fyi, In looking around I came up with these 2 : a) googled 'read xls'

[fpc-pascal] fpGUI documentation

2013-10-01 Thread Patrick
Apologies if this is a double post, I sent this, this morning but it does not seem to have made it to the list: Hi Graeme I am really impressed with fpGUI. Judging from the examples and the comments of others, this is exactly what I need. The examples will go a long way in helping me

RE: [fpc-pascal] fpGUI documentation

2013-10-01 Thread Fred van Stappen
Hello Here the forum-site of fpGUI : http://opensoft.homeip.net/webnews/webnews.cgi?user=username;group=fpgui.support Date: Tue, 1 Oct 2013 16:26:56 -0400 From: patr...@spellingbeewinnars.org To: fpc-pascal@lists.freepascal.org Subject: [fpc-pascal] fpGUI documentation Apologies if this

RE: [fpc-pascal] fpGUI documentation

2013-10-01 Thread Fred van Stappen
Ooops, seems to be wrong link in earlier topic. Here link to fpGui-forum (working, i hope) : http://opensoft.homeip.net/webnews/webnews.cgi?user=username;group=fpgui.support Date: Tue, 1 Oct 2013 16:26:56 -0400 From: patr...@spellingbeewinnars.org To: fpc-pascal@lists.freepascal.org