Re: [fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-06 Thread LacaK
What if TDataSetEnumerator.Current will return TFields instead of TDataSet which enumerates?Example:  procedure IterateDataSet;  var DataSet, DS: TDataSet;      Flds: TFields;      F: TField;  begin    for Flds in DataSet do      for F in Flds do  // DataSet can be still accessed by Flds.DataSet   

Re: [fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-06 Thread Michael Van Canneyt
On Fri, 6 Mar 2015, LacaK wrote: You should check here for unidirectional datasets. They do not support .first. For unidirectional datasets you can only go from the current point forward. AFAIK we support First. We have also test for it. Ah :) Great, in that case no changes are needed.

Re: [fpc-pascal] FPC embedded ?

2015-03-06 Thread Marco van de Voort
In our previous episode, Adriaan van Os said: > > - If you need it for automation in factories: get something with hardware > > quadrature encoder and motor control support. It saves having to do > > something custom again the first time you have to do something linked > > to a conveyer belt.

[fpc-pascal] Base36 encoding

2015-03-06 Thread Constantine Yannakopoulos
Hello all. I need a couple of base36 (https://en.wikipedia.org/wiki/Base_36) encoding/decoding functions with the following or similar signatures: function Base36Encode(Buffer: TBytes): string; overload; function Base36Encode(const Buffer; BufSize: Integer): string; overload; function Base36Decod

Re: [fpc-pascal] FPC embedded ?

2015-03-06 Thread Michael Schnell
On 03/06/2015 12:05 PM, Adriaan van Os wrote: What aspect do you hint at ? Hardware scale ? Programming skills ? Depends on the project. If building a wall it's laying bricks :-) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-06 Thread LacaK
You should check here for unidirectional datasets. They do not support .first. For unidirectional datasets you can only go from the current point forward. AFAIK we support First. We have also test for it. Btw Delphi: "The only supported navigation methods are the First

Re: [fpc-pascal] fpGUI - UI Designer - place own components ?

2015-03-06 Thread Graeme Geldenhuys
On 2015-03-06 10:37, Tomas Hajny wrote: > mentioned it in his post), so I included him in Cc: now. Thanks Tomas. I forwarded my answer directly to him as well. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___

Re: [fpc-pascal] FPC embedded ?

2015-03-06 Thread Adriaan van Os
Michael Schnell wrote: On 03/05/2015 07:57 PM, Adriaan van Os wrote: It's a very smal project but ... 40 years of development teach you that "small Project" usually needs to be read as "underestimated project". ;-) What aspect do you hint at ? Hardware scale ? Programming skills ? Regards

Re: [fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-06 Thread Michael Van Canneyt
On Thu, 5 Mar 2015, silvioprog wrote: On Thu, Mar 5, 2015 at 6:48 AM, Constantine Yannakopoulos wrote: On Thu, Mar 5, 2015 at 2:11 AM, silvioprog wrote: What do you think about a TDataSetEnumerator class in the DB unit? Something like this: === begin code ===   fun

Re: [fpc-pascal] fpGUI - UI Designer - place own components ?

2015-03-06 Thread Tomas Hajny
The original poster is not subscribed to the list (although he hasn't mentioned it in his post), so I included him in Cc: now. Tomas On Fri, March 6, 2015 11:26, Graeme Geldenhuys wrote: > On 2015-03-05 08:42, Peter Krawies wrote: >> how to make descendants from the fpGUI visual components >

Re: [fpc-pascal] fpGUI - UI Designer - place own components ?

2015-03-06 Thread Graeme Geldenhuys
On 2015-03-05 08:42, Peter Krawies wrote: > how to make descendants from the fpGUI visual components To create new widgets/components, pick a base component that is close to what you need, or descend from TfpgWidget (in the fpg_widget.pas unit). > and then place my own derived Components >

Re: [fpc-pascal] FPC embedded ?

2015-03-06 Thread Michael Schnell
On 03/05/2015 07:57 PM, Adriaan van Os wrote: It's a very smal project but ... 40 years of development teach you that "small Project" usually needs to be read as "underestimated project". ;-) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.f