Re: [fpc-pascal] Sets

2013-10-02 Thread Juha Manninen
On Thu, Oct 3, 2013 at 1:58 AM, Jonas Maebe wrote: > It is part of {$mode delphi}: > http://wiki.freepascal.org/User_Changes_2.6.0#Sizes_of_sets_in_TP.2FDelphi_mode Ok, sorry Marco and Jonas. This unit did not have Mode Delphi. I thought the setting in a Lazarus project was enough but no. This un

Re: [fpc-pascal] Sets

2013-10-02 Thread Jonas Maebe
On 02 Oct 2013, at 23:01, Juha Manninen wrote: > On Wed, Oct 2, 2013 at 10:50 PM, Sven Barth > wrote: >> And as Peter already mentioned there is $PACKSET: >> http://freepascal.org/docs-html/prog/progsu61.html#x67-660001.1.61 > > Ok, {$PACKSET 1} helps. > I expected it to be part of {$Mode Delp

Re: [fpc-pascal] Sets

2013-10-02 Thread Juha Manninen
On Wed, Oct 2, 2013 at 10:50 PM, Sven Barth wrote: > And as Peter already mentioned there is $PACKSET: > http://freepascal.org/docs-html/prog/progsu61.html#x67-660001.1.61 Ok, {$PACKSET 1} helps. I expected it to be part of {$Mode Delphi}. Most things are Delphi compatible with it. Thanks. Juha

Re: [fpc-pascal] Sets

2013-10-02 Thread Marco van de Voort
In our previous episode, Juha Manninen said: [ Charset ISO-8859-1 unsupported, converting... ] > If I have have a set with < 9 elements, like : > > type > TMyEnum = ( > xOne, > xTwo, > xThree, > xFour, > xFive > ); > // Count <= 8, fits in one Byte > TMyEnums = set of T

Re: [fpc-pascal] Sets

2013-10-02 Thread Sven Barth
On 02.10.2013 19:09, Juha Manninen wrote: If I have have a set with < 9 elements, like : type TMyEnum = ( xOne, xTwo, xThree, xFour, xFive ); // Count <= 8, fits in one Byte TMyEnums = set of TMyEnum; then in Delphi a variable of that type can be casted to B

Re: [fpc-pascal] Sets

2013-10-02 Thread Peter
Perhaps you need the {$PACKENUM n} compiler directive for the enumerated type? On 02/10/13 18:09, Juha Manninen wrote: > If I have have a set with < 9 elements, like : > > type > TMyEnum = ( > xOne, > xTwo, > xThree, > xFour, > xFive > ); > // Count <= 8, fits in one Byt

[fpc-pascal] Sets

2013-10-02 Thread Juha Manninen
If I have have a set with < 9 elements, like : type TMyEnum = ( xOne, xTwo, xThree, xFour, xFive ); // Count <= 8, fits in one Byte TMyEnums = set of TMyEnum; then in Delphi a variable of that type can be casted to Byte. Other casts don't work. In FPC I must cast it to

Re: [fpc-pascal] fpGUI documentation

2013-10-02 Thread Graeme Geldenhuys
On 02/10/13 12:00, Michael Schnell wrote: > > A person in the German Lazarus forum might want to use fpGUI with OpenGL > as a Backend. Is this viable ? Any chance ? I vaguely remember somebody already done this... Not sure how far they got though. I also know of somebody that used the Cairo Bac

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

2013-10-02 Thread Felipe Monteiro de Carvalho
It's really very simple. fpspreadsheet requires lazutils, which comes inside the source code from Lazarus and lazutils does not require anything out of FPC. So if you don't want to use Lazarus, which would automatically solve the problem, then just pass 2 unit search paths to FPC when compiling yo

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

2013-10-02 Thread John Lee
I have it and use it - but not lazarus. But using some legacy 2.2.2 libraries w/o source & want it to work there. Even with latest fpc it didn't seem very easy to get sheet data into csv, I couldn't follow the examples in fpspread..., seemed to need lots of lazarus stuff n units that I didn't under

Re: [fpc-pascal] fpGUI documentation

2013-10-02 Thread Michael Schnell
Graeme, as we are at this issue: A person in the German Lazarus forum might want to use fpGUI with OpenGL as a Backend. Is this viable ? Any chance ? Thanks, -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free

[fpc-pascal] fpGUI documentation

2013-10-02 Thread Patrick
Hi Graeme I am really impressed with fpGUI. Judging from the examples and the comments of others, this is exactly what I need. The examples will go a long way in helping me understand it but I seem to be hitting a number of roadblocks with the documentation. The class index on the site appe

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

2013-10-02 Thread Felipe Monteiro de Carvalho
Why cant you download the latest FPC? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

2013-10-02 Thread John Lee
I didn't _want_ to use 3rd part products - I didn't really have any choice if I wanted to get something working in a finite time, given the 1000s of lines of code to try to hack, then test when I don't really understand them & the fact that there isn't any easy fpc solution. Thanks all for you hel

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

2013-10-02 Thread Reinier Olislagers
On 01/10/2013 21:44, John Lee wrote: > Thanks for all suggestions. IMO fpspread...pas is too complex for & I'd > need to hack thro' thousands of lines - maybe a simple program to read > xls into csv, as in b) below could be added?. > Guess one could try to use the excel.dll in te reference in fpc

Re: [fpc-pascal] fpGUI documentation

2013-10-02 Thread Graeme Geldenhuys
On 01/10/13 21:26, Patrick wrote: > The examples will go a long way in helping me understand it The examples are designed to demonstrate one single (simple) topic at a time. I found that easier to digest than lots of complex examples. > The class index on the site appears to be a dead link: > ht