Re: [fpc-pascal] GUI confusion

2013-09-30 Thread Michal Wallace
On Sep 29, 2013 8:24 AM, Patrick patr...@spellingbeewinnars.org wrote: I don't really like IDEs. I used gvim and I suppose it could almost be called an IDE as well but I mean I would rather use the shellr then clicking on a build button. For what its worth, I use free pascal practically every

Re: [fpc-pascal] Status of UTF8

2013-09-30 Thread Michael Schnell
On 09/28/2013 02:51 PM, Jonas Maebe wrote: . You can read your data into a RawByteString and then call SetCodePage(rawbytestr,codepagenr,false) to set its code page to whatever the code page of the data in that string is (without attempting to convert the data, which is what the last false

[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:

[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 =

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 -

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

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

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

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

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

[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 -

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 johnel...@gmail.com wrote: File produced by excel 2003. Can anyone tell me the basic ideas, formats, pitfalls - I'd just like to write a short routine

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

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

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 mich...@freepascal.org 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

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 den...@avidsoft.com.hk 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

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

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

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 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 buf.FieldByName('field_name') OR buf.Fields[i]. Marcos

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