Re: [fpc-pascal] ExtractStrings skips empty string parts?

2014-01-28 Thread Michael Van Canneyt
On Mon, 27 Jan 2014, silvioprog wrote: 2014-01-27 Michael Van Canneyt mich...@freepascal.org On Mon, 27 Jan 2014, silvioprog wrote: 2014-01-26 Michael Van Canneyt mich...@freepascal.org       On Sun, 26 Jan 2014, silvioprog wrote:             Hello,

Re: [fpc-pascal] best method: multiple three state options in a decision tree

2014-01-28 Thread Lukasz Sokol
Hello Jürgen, On 27/01/14 17:50, Jürgen Hestermann wrote: [...] I recently had a similar problem and solved it this way: With --- type FlagType = (FlagA, FlagB, FlagC, FlagD,

[fpc-pascal] Formating JSON outputs

2014-01-28 Thread luciano de souza
Hello all, JSON is a very easy format to handle with Freepascal. However, the output is not so readable when the number of registers increase. An example of it is: program test; {$mode objfpc}{$H+} uses classes, fpjson; var r, j: TJSONObject; a: TJSONArray; s: TStringlist; BEGIN s :=

Re: [fpc-pascal] Formating JSON outputs

2014-01-28 Thread Sven Barth
Am 28.01.2014 12:29, schrieb luciano de souza: Hello all, JSON is a very easy format to handle with Freepascal. However, the output is not so readable when the number of registers increase. An example of it is: [snip] s.text := r.AsJson; s.SavetoFile('test.txt'); [snip] The corresponding

Re: [fpc-pascal] Formating JSON outputs

2014-01-28 Thread Michael Van Canneyt
On Tue, 28 Jan 2014, luciano de souza wrote: Hello all, JSON is a very easy format to handle with Freepascal. However, the output is not so readable when the number of registers increase. An example of it is: [snip] The corresponding output is: { people : [{ name : Luciano de Souza, age

Re: [fpc-pascal] Does TBufDataSet support Blob or memo field?

2014-01-28 Thread LacaK
I checked my code again and I found I did post after I check the blob/memo field values. I think it is probably a bug, rather than a feature as all fields should be the same: values get updated even without calling post. Yes, I agree. As I wrote I will look at it ... if I find smart

[fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Andrew Haines
Hi, I want to use c interfaces exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. Here's an example of an exported struct: struct SLPlayItf_ { SLresult (*SetPlayState) ( SLPlayItf self, SLuint32 state

Re: [fpc-pascal] ExtractStrings skips empty string parts?

2014-01-28 Thread silvioprog
2014-01-28 Michael Van Canneyt mich...@freepascal.org On Mon, 27 Jan 2014, silvioprog wrote: 2014-01-27 Michael Van Canneyt mich...@freepascal.org On Mon, 27 Jan 2014, silvioprog wrote: 2014-01-26 Michael Van Canneyt mich...@freepascal.org On Sun, 26 Jan

Re: [fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Jonas Maebe
On 28 Jan 2014, at 18:13, Andrew Haines wrote: I want to use c interfaces exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. Here's an example of an exported struct: struct SLPlayItf_ { SLresult (*SetPlayState) (

[fpc-pascal] FPCUnit and threads

2014-01-28 Thread Marcos Douglas
Hi, FPCUnit has support for threads test? If yes, do you have an example? Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPCUnit and threads

2014-01-28 Thread Michael Van Canneyt
On Tue, 28 Jan 2014, Marcos Douglas wrote: Hi, FPCUnit has support for threads test? If yes, do you have an example? No, it does not. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] c structs and pascal interfaces

2014-01-28 Thread Andrew Haines
On 01/28/2014 12:26 PM, Jonas Maebe wrote: On 28 Jan 2014, at 18:13, Andrew Haines wrote: I want to use c interfaces exposed as structs in fpc as interfaces. In particular I'm converting the OpenSLES header file to fpc. If they are exposed as structs, you should translate them into