[fpc-pascal] property TField.AutoGenerateValue missing in 2.6.2

2013-09-30 Thread Dennis Poon
I just noticed the above property is missing in FPC 2.6.2 I am porting some old delphi code to FPC and noticed it. If I simply ignore this property value (always assume it to be arNone), will it cause any problem? Dennis ___ fpc-pascal maillist -

Re: [fpc-pascal] property TField.AutoGenerateValue missing in 2.6.2

2013-09-30 Thread Michael Van Canneyt
On Mon, 30 Sep 2013, Dennis Poon wrote: I just noticed the above property is missing in FPC 2.6.2 I am porting some old delphi code to FPC and noticed it. If I simply ignore this property value (always assume it to be arNone), will it cause any problem? That depends on the application: if

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

2013-09-30 Thread Dennis Poon
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? At this stage, I only need to read the value, no to write it. Also, how do I use the procedure LoadFromStream(AStream : TStream; Format: TDataPacketFormat = dfAn

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

2013-09-30 Thread Michael Van Canneyt
On Mon, 30 Sep 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. Michael. ___ fpc-pascal maillist - fpc-pascal@list

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

2013-09-30 Thread Martin Schreiber
On Monday 30 September 2013 13:09:16 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? > > The MSEgui version of tbufdataset and its descendants supports direct field value access by "property cu

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

2013-09-30 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 (df

Re: [fpc-pascal] property TField.AutoGenerateValue missing in 2.6.2

2013-09-30 Thread Dennis Poon
Michael Van Canneyt wrote: On Mon, 30 Sep 2013, Dennis Poon wrote: I just noticed the above property is missing in FPC 2.6.2 I am porting some old delphi code to FPC and noticed it. If I simply ignore this property value (always assume it to be arNone), will it cause any problem? That d

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

2013-09-30 Thread Dennis Poon
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 (dfBinary, dfXML etc) It is not requi

[fpc-pascal] sizeof(Enumerated type in Delphi 5) <> sizeof(The same type in FPC)

2013-09-30 Thread Dennis Poon
In Delphi 5, var G : TAutoRefreshFlag; //where type TAutoRefreshFlag = (arNone, arAutoInc, arDefault); sizeof(G) returns 1 in FPC if defined type TAutoRefreshFlag = (arNone, arAutoInc, arDefault); and same Var G : TAutoRefreshFlag; sizeof(G) returns 4. This different behaviour bre

Re: [fpc-pascal] property TField.AutoGenerateValue missing in 2.6.2

2013-09-30 Thread Michael Van Canneyt
On Mon, 30 Sep 2013, Dennis Poon wrote: Michael Van Canneyt wrote: On Mon, 30 Sep 2013, Dennis Poon wrote: I just noticed the above property is missing in FPC 2.6.2 I am porting some old delphi code to FPC and noticed it. If I simply ignore this property value (always assume it to be a

Re: [fpc-pascal] sizeof(Enumerated type in Delphi 5) <> sizeof(The same type in FPC)

2013-09-30 Thread Jonas Maebe
On 30 Sep 2013, at 14:18, Dennis Poon wrote: In Delphi 5, var G : TAutoRefreshFlag; //where type TAutoRefreshFlag = (arNone, arAutoInc, arDefault); sizeof(G) returns 1 [snip] This different behaviour break some code when I port them from Delphi 5 to FPC. Is there a compiler directive

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread m...@rpzdesign.com
But how do you enable the anchor docking extension for Lazarus 1.0.12 and get some control of all the floating panels. I personally would want all the panels to come to the front when I click on any panel instead of having to click a couple of times to bring console or messages panel to the for

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

2013-09-30 Thread Dennis Poon
I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2 's compilation and debugging a lot slower than Delphi 5. Are there any settings that I can make to speed up Lazarus? Dennis ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

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

2013-09-30 Thread Michael Van Canneyt
On Mon, 30 Sep 2013, Dennis Poon wrote: I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2 's compilation and debugging a lot slower than Delphi 5. Are there any settings that I can make to speed up Lazarus? Switch to Linux. Michael. _

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread Sven Barth
Am 30.09.2013 15:57, schrieb m...@rpzdesign.com: But how do you enable the anchor docking extension for Lazarus 1.0.12 and get some control of all the floating panels. Install AnchorDockingDsgn package, rebuild Lazarus and now you're able to dock. Regards, Sven

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread Peter
HI, You might like Geany. http://www.geany.org/Main/About Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-09-30 Thread John Lee
File produced by excel 2003. Can anyone tell me the basic ideas, formats, pitfalls - I'd just like to write a short routine & don't want to fight with the complexities of the lazarus based stuff. Prepared to experiment... TIA John ___ fpc-pascal maillist

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

2013-09-30 Thread Felipe Monteiro de Carvalho
You mean like this library does? http://wiki.freepascal.org/FPSpreadsheet Felipe Monteiro de Carvalho On Mon, Sep 30, 2013 at 5:33 PM, John Lee wrote: > File produced by excel 2003. Can anyone tell me the basic ideas, formats, > pitfalls - I'd just like to write a short routine & don't want to f

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

2013-09-30 Thread Dennis Poon
On Mon, 30 Sep 2013, Dennis Poon wrote: I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2 's compilation and debugging a lot slower than Delphi 5. Are there any settings that I can make to speed up Lazarus? Switch to Linux. It is faster on Linux but still way sl

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

2013-09-30 Thread Michael Van Canneyt
On Mon, 30 Sep 2013, Dennis Poon wrote: On Mon, 30 Sep 2013, Dennis Poon wrote: I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2 's compilation and debugging a lot slower than Delphi 5. Are there any settings that I can make to speed up Lazarus? Switch to Linu

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

2013-09-30 Thread Mattias Gaertner
On Mon, 30 Sep 2013 17:52:39 +0200 (CEST) Michael Van Canneyt wrote: > > > On Mon, 30 Sep 2013, Dennis Poon wrote: > > > > > > >> > >> On Mon, 30 Sep 2013, Dennis Poon wrote: > >> > >>> I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2 > >>> 's compilation and debugg

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

2013-09-30 Thread Mattias Gaertner
On Mon, 30 Sep 2013 22:15:01 +0800 Dennis Poon wrote: > I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC > 2.6.2 's compilation and debugging a lot slower than Delphi 5. > Are there any settings that I can make to speed up Lazarus? On some systems the anti virus scanner makes

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

2013-09-30 Thread Martin
On 30/09/2013 16:38, Dennis Poon wrote: On Mon, 30 Sep 2013, Dennis Poon wrote: I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2 's compilation and debugging a lot slower than Delphi 5. Are there any settings that I can make to speed up Lazarus? Switch to Linux.

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread m...@rpzdesign.com
Sven: You ROCK! md On 9/30/2013 11:19 AM, Sven Barth wrote: Am 30.09.2013 15:57, schrieb m...@rpzdesign.com: But how do you enable the anchor docking extension for Lazarus 1.0.12 and get some control of all the floating panels. Install AnchorDockingDsgn package, rebuild Lazarus and now you're

Re: [fpc-pascal] GUI confusion

2013-09-30 Thread Patrick
I am new. I use multiple monitors so, all of the panels could stay on one screen and the form widget on another, docking might be handy to move all the panels at once. On 09/30/2013 09:57 AM, m...@rpzdesign.com wrote: But how do you enable the anchor docking extension for Lazarus 1.0.12

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

2013-09-30 Thread m...@rpzdesign.com
Here is a suggestion that might help your compile times. If you want superfast increases in compiling under linux/freepascal/lazarus, switch your development computer to a super fast CPU and especially an SSD solid state disk drive. Make sure you have no spinning disks/media in your computer.

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

2013-09-30 Thread Dennis Poon
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 TMemDataset allow it? Thanks. Dennis _

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

2013-09-30 Thread Marcos Douglas
On Mon, Sep 30, 2013 at 8:09 AM, 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? > [...] You can use buf.RecNo and buf.FieldByName('field_name') OR buf.Fields[i]. Marcos Douglas __

RE: [fpc-pascal] GUI confusion

2013-09-30 Thread Fred van Stappen
Have you try fpGUI ? https://github.com/graemeg/fpGUI/tree/develop Date: Mon, 30 Sep 2013 01:07:56 -0500 Subject: Re: [fpc-pascal] GUI confusion From: michal.wall...@gmail.com To: fpc-pascal@lists.freepascal.org On Sep 29, 2013 8:24 AM, "Patrick" wrote: > I don't really like IDEs. I used gv

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

2013-09-30 Thread John Lee
Thanks - that looks excellent, but the 'uses' list for this, for non lazarus users, has, I guess, lots of things in it. The problem is also that I'm trying to implement this hack in an old version of pascal, v2.2.2 for which I only have the compiler & basic rtl stuff - that's why I'd just like som