[fpc-pascal] Extended property can't have default value?

2008-10-06 Thread Graeme Geldenhuys
Why is the following not allowed in a class declaration? property Increment: extended read FIncrement write SetIncrement default 1.0; yet this is... property Increment: integer read FIncrement write SetIncrement default 1; What would be the major obstacle between Extended and Integer

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Antal
> > It is a plain text file, each row is separated with CRLF (#13#10), each >> cell separated with tab (#9) >> > > errm, surely that should be a comma, not a tab! The Tab as separator is just a good way to avoid using the double quote :P It just comes from the good old Lotus123. Anyway, just try

Re: [fpc-pascal] Extended property can't have default value?

2008-10-06 Thread Jonas Maebe
On 06 Oct 2008, at 12:48, Graeme Geldenhuys wrote: Why is the following not allowed in a class declaration? property Increment: extended read FIncrement write SetIncrement default 1.0; Because default values are stored in a 32 bit location inside the compiler. I have no idea what the

Re: [fpc-pascal] Extended property can't have default value?

2008-10-06 Thread Joao Morais
Graeme Geldenhuys wrote: Why is the following not allowed in a class declaration? property Increment: extended read FIncrement write SetIncrement default 1.0; yet this is... property Increment: integer read FIncrement write SetIncrement default 1; What would be the major obstacle be

Re: [fpc-pascal] Extended property can't have default value?

2008-10-06 Thread Michael Van Canneyt
On Mon, 6 Oct 2008, Jonas Maebe wrote: > > On 06 Oct 2008, at 12:48, Graeme Geldenhuys wrote: > > >Why is the following not allowed in a class declaration? > > > > property Increment: extended read FIncrement write SetIncrement default > > 1.0; > > Because default values are stored in a 3

Re: [fpc-pascal] Extended property can't have default value?

2008-10-06 Thread Joao Morais
Jonas Maebe wrote: On 06 Oct 2008, at 12:48, Graeme Geldenhuys wrote: Why is the following not allowed in a class declaration? property Increment: extended read FIncrement write SetIncrement default 1.0; Because default values are stored in a 32 bit location inside the compiler. I have

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Tomas Hajny
On Mon, October 6, 2008 05:33, Antal wrote: >> >> It is a plain text file, each row is separated with CRLF (#13#10), each >>> cell separated with tab (#9) >>> >> >> errm, surely that should be a comma, not a tab! > > > The Tab as separator is just a good way to avoid using the double quote :P > It

Re: [fpc-pascal] Extended property can't have default value?

2008-10-06 Thread Graeme Geldenhuys
On Mon, Oct 6, 2008 at 4:13 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > FPC is 100% Delphi compatible as FPC. Default values for sets are also only > allowed > for sets that fit in 32-bits. We can change this, but that would require > quite some > work in the RTTI structures. So do yo

Re: [fpc-pascal] Extended property can't have default value?

2008-10-06 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > On Mon, Oct 6, 2008 at 4:13 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > > > FPC is 100% Delphi compatible as FPC. Default values for sets are also only > > allowed > > for sets that fit in 32-bits. We can change this, but that would r

Re: [fpc-pascal] Extended property can't have default value?

2008-10-06 Thread Michael Van Canneyt
On Mon, 6 Oct 2008, Graeme Geldenhuys wrote: > On Mon, Oct 6, 2008 at 4:13 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > > > FPC is 100% Delphi compatible as FPC. Default values for sets are also only > > allowed > > for sets that fit in 32-bits. We can change this, but that would re

[fpc-pascal] linklib c using mingw, cygwin, both, or ...

2008-10-06 Thread wolfram . klaeger
I'm trying to follow the tutorial, How to use C code in FreePascal projects, ftp://ftp.freepascal.org/pub/fpc/docs-pdf/CinFreePascal.pdf In order to get gcc running on Windows, I tried both options, mingw and cygwin. This or that way, compiling hello.c to hello.o works. Linking hello.o to hello

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Frank Peelo
Tomas Hajny wrote: On Mon, October 6, 2008 05:33, Antal wrote: It is a plain text file, each row is separated with CRLF (#13#10), each cell separated with tab (#9) errm, surely that should be a comma, not a tab! The Tab as separator is just a good way to avoid using the double quote :P

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Marco van de Voort
In our previous episode, Frank Peelo said: > > An additional issue with delimiters in this case is the fact, that "C" in > > "CSV" may not always be a comma (or that spreadsheet applications may > > expect different characters depending on locale - e.g. semicolons, etc.). > > CSV is occasionally r

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Frank Peelo
Marco van de Voort wrote: In our previous episode, Frank Peelo said: An additional issue with delimiters in this case is the fact, that "C" in "CSV" may not always be a comma (or that spreadsheet applications may expect different characters depending on locale - e.g. semicolons, etc.). CSV is

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Francisco Reyes
Michael Van Canneyt writes: If buying is an option: You can buy FlexCel from TMS software. It works with FPC/Lazarus. Thanks for the pointer. 75 EUR is a little steep for what will end up been an open source app. Specially since it will be a text based program. Will try the Lazarus component

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Michael Van Canneyt
On Mon, 6 Oct 2008, Francisco Reyes wrote: > Michael Van Canneyt writes: > > > If buying is an option: You can buy FlexCel from TMS software. > > It works with FPC/Lazarus. > > Thanks for the pointer. > > 75 EUR is a little steep for what will end up been an open source app. > Specially since

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Tomas Hajny
On 6 Oct 08, at 18:00, Frank Peelo wrote: > Marco van de Voort wrote: > > In our previous episode, Frank Peelo said: > > > >>>An additional issue with delimiters in this case is the fact, that "C" in > >>>"CSV" may not always be a comma (or that spreadsheet applications may > >>>expect different ch

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Marco van de Voort
In our previous episode, Frank Peelo said: > >>CSV is occasionally referred to as something other than "Comma Separated > >>Values". I'm not sure why. > > > > > > Because the comma is a bad separator for countries where the comma is the > > decimal separator, like most of mainland Europe. > >

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Ralf A. Quint
At 12:40 PM 10/6/2008, Marco van de Voort wrote: In our previous episode, Frank Peelo said: > >>CSV is occasionally referred to as something other than "Comma Separated > >>Values". I'm not sure why. > > > > > > Because the comma is a bad separator for countries where the comma is the > > decimal

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Marco van de Voort
In our previous episode, Ralf A. Quint said: > > > > Because the comma is a bad separator for countries where the comma is > > > > the > > > > decimal separator, like most of mainland Europe. > > > > > > But CSV handles that fine! > > > >CSV is just that comma separated. > > > >Quoting is one comm

Re: [fpc-pascal] linklib c using mingw, cygwin, both, or ...

2008-10-06 Thread Wolfram Kläger
> I'm trying to follow the tutorial, How to use C code in FreePascal projects, > > ftp://ftp.freepascal.org/pub/fpc/docs-pdf/CinFreePascal.pdf > > In order to get gcc running on Windows, I tried both options, mingw and > cygwin. ... Solved. Instead of {$linklib c} as described in the tutoria

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Francisco Reyes
Michael Van Canneyt writes: If you ask me, it can't be hard to write the older text excel file format. Thanks for the links will take a look later. For now I will go with http://wiki.lazarus.freepascal.org/FPSpreadsheet and see how that works out. __