Re: [Lazarus] Can't enter negative values in to TFloatSpinEdit

2013-11-13 Thread zeljko
On 11/13/2013 12:14 AM, Bart wrote: Possibly related to http://bugs.freepascal.org/view.php?id=23266 ? If not the same, please open a bugreport on the bugtracker. No, he is using qt ws -- ___ Lazarus mailing list

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Lukasz Sokol
On 12/11/13 22:52, Bart wrote: On 11/12/13, waldo kitty wkitt...@windstream.net wrote: you do not need any of the above if you change Days := (DaysPerMonth(M1, IsLeapYear(Y2)) - D1) + D2 ; to Days := (DaysInAMonth(Y2,M1) - D1) + D2; I did not know about DaysInAMonth. I

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Lukasz Sokol
[snip] All this, should be planned to use 64 bit Unix Timestamps already ;) (year 2038 is not that long away) -L. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] DateDif function needed

2013-11-13 Thread John Landmesser
On 13.11.2013 02:33, waldo kitty wrote: actually, i have in some cases... let's ask this question and see what your charts and routines return as the result... assuming your format is DD.MM.... Date1 := 01.01.2000 Date2 := 01.01.2000 should be 0 (zero), right? then Date1 :=

Re: [Lazarus] DateDif function needed

2013-11-13 Thread waldo kitty
On 11/13/2013 3:53 AM, Lukasz Sokol wrote: [snip] All this, should be planned to use 64 bit Unix Timestamps already ;) (year 2038 is not that long away) agreed but that is dependent on what TDateTime does since it is built on that like other existing time and date routines ;) at one point

Re: [Lazarus] Lazarus Digest, Vol 70, Issue 35

2013-11-13 Thread Lex Edmonds
This is my first post on this mailing list, so please bear with me. I used to do date calculations like this in the '80s when I was writing Real Estate software. On Tue, 12 Nov 2013 20:33:00, waldo kitty wrote: [...] the real question is this: what do we count? the starting day, the

Re: [Lazarus] DateDif function needed

2013-11-13 Thread waldo kitty
On 11/13/2013 5:19 AM, John Landmesser wrote: On 13.11.2013 02:33, waldo kitty wrote: actually, i have in some cases... let's ask this question and see what your charts and routines return as the result... assuming your format is DD.MM.... Date1 := 01.01.2000 Date2 := 01.01.2000 should

Re: [Lazarus] Local CHM help files or web based?

2013-11-13 Thread Kostas Michalopoulos
For a very simple help (f.e. for a small program or utility) you can also use LazHelp to embed the documentation in your application: http://badsector.github.io/lazhelp/ Note that i haven't updated for a while so it might not compile cleanly (it does compile though). Also i'm going to move it

Re: [Lazarus] DateDif function needed

2013-11-13 Thread John Landmesser
On 13.11.2013 14:02, waldo kitty wrote: We don't need to invent the wheel again, because others have solutions for that! then why does this thread exist? O:) I'll try to find what the usual way is to handle these problems: c++ Libraries for example?! i don't know as i do not have

[Lazarus] write watch breakpoint to field inside object

2013-11-13 Thread Felipe Monteiro de Carvalho
Hello, I managed to add a write watch to my variable VarA which is an instance of a class and it works fine following instructions here: http://wiki.freepascal.org/IDE_Window:Breakpoints But actually I would like to watch when a field inside the class is modified. Any way to do that? I tried

[Lazarus] Lazarus 1.2RC1 Ctrl-F9 not working

2013-11-13 Thread Richard Mace
Hi All, Running the latest RC in stock Xubutu 12.04 and Ctrl-F9 doesn't work, but if you select compile from the menu, it works fine. Any ides? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] DateDif function needed

2013-11-13 Thread waldo kitty
NOTE: subject fixed to indicate the actual topic ;) On 11/13/2013 6:24 AM, Lex Edmonds wrote: This is my first post on this mailing list, so please bear with me. I used to do date calculations like this in the '80s when I was writing Real Estate software. On Tue, 12 Nov 2013 20:33:00, waldo

Re: [Lazarus] Lazarus 1.2RC1 Ctrl-F9 not working

2013-11-13 Thread Mattias Gaertner
On Wed, 13 Nov 2013 15:05:20 + Richard Mace richard.m...@gmail.com wrote: Hi All, Running the latest RC in stock Xubutu 12.04 and Ctrl-F9 doesn't work, but if you select compile from the menu, it works fine. Any ides? Check your short cuts in your system settings. They take precedence

Re: [Lazarus] write watch breakpoint to field inside object

2013-11-13 Thread Martin
On 13/11/2013 14:54, Felipe Monteiro de Carvalho wrote: Hello, I managed to add a write watch to my variable VarA which is an instance of a class and it works fine following instructions here: http://wiki.freepascal.org/IDE_Window:Breakpoints But actually I would like to watch when a field

[Lazarus] [ANN] ZBoleto - Bank payment slips generator.

2013-11-13 Thread silvioprog
Hello, This announce is about a Brazilian project written in Free Pascal, for generating Bank payment slips (in Brazil, it is called as Boletos bancários). Link to the project page: http://silvioprog.github.io/zboleto Supported banks: . Banco do Brasil; . Bradesco; . Caixa Econômica Federal;

Re: [Lazarus] write watch breakpoint to field inside object

2013-11-13 Thread Martin
On 13/11/2013 15:47, Martin wrote: What type is the field? It works here. Couple of points: - You must use global for scope. Unless your object var VarA is a global var). Otherwise varA will go out of scope, and gdb has no idea there are other refs to the object. - You must delete, and

Re: [Lazarus] write watch breakpoint to field inside object

2013-11-13 Thread Felipe Monteiro de Carvalho
Also, it may not work, if the fields type is declared inline AFoo: array of integer; because the IDE needs the name of the type for a typecast in the gdb expression generated It is array of SomeStructure declared inline indeed ... I'll try to change to a named type, thanks. -- Felipe

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Jürgen Hestermann
Am 2013-11-13 16:22, schrieb waldo kitty: A baby born on 1/01/2007 would be 7 days old on 7/01/2007. true :) Realy? That would mean that a baby born on 2007-01-01 10:00 is two days old on 2007-01-02 10:00? To me this seems wrong because after 24 hours is only one day old. A simple substraction

Re: [Lazarus] DateDif function needed

2013-11-13 Thread waldo kitty
On 11/13/2013 9:37 AM, John Landmesser wrote: On 13.11.2013 14:02, waldo kitty wrote: We don't need to invent the wheel again, because others have solutions for that! then why does this thread exist? O:) I'll try to find what the usual way is to handle these problems: c++ Libraries for

Re: [Lazarus] Lazarus 1.2RC1 Ctrl-F9 not working

2013-11-13 Thread Henry Vermaak
On Wed, Nov 13, 2013 at 04:38:28PM +0100, Mattias Gaertner wrote: On Wed, 13 Nov 2013 15:05:20 + Richard Mace richard.m...@gmail.com wrote: Hi All, Running the latest RC in stock Xubutu 12.04 and Ctrl-F9 doesn't work, but if you select compile from the menu, it works fine. Any

Re: [Lazarus] [ANN] ZBoleto - Bank payment slips generator.

2013-11-13 Thread Fabrício Srdic
Great work! thanks a lot! Em 13/11/2013 13:53, silvioprog silviop...@gmail.com escreveu: Hello, This announce is about a Brazilian project written in Free Pascal, for generating Bank payment slips (in Brazil, it is called as Boletos bancários). Link to the project page:

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Reimar Grabowski
On Tue, 12 Nov 2013 22:00:39 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: Seeing this, I can't help but think that the approximation approach may not be such a bad idea after all :D Can you elaborate what the approximation is? I fail to see it. 1 julian year = 365.25 days of

[Lazarus] Lazarus 1.2 RC1

2013-11-13 Thread Samuel Herzog
Hi, just to let you know. I opened all 110 projects in the examples folder and tried to compile them. (on win xp sp1) Congratulation, there were only a very few projects with problems: checkbox:        Problem with writlen in TForm1.CheckBoxClick    Runerror 103    File not open speedtest:     

Re: [Lazarus] Lazarus Release Candidate 1 of 1.2

2013-11-13 Thread Mark Morgan Lloyd
== Why should everybody (including you) test the release candidate? == I've just compiled 1.2 RC1 for GTK2 on a clean x86 Linux system using 2.6.2, running an older version of Debian (lenny). I notice that the icons on the toolbar don't appear until either the pointer is moved over them, or

Re: [Lazarus] DateDif function needed

2013-11-13 Thread John Landmesser
On 13.11.2013 18:31, waldo kitty wrote: On 11/13/2013 9:37 AM, John Landmesser wrote: On 13.11.2013 14:02, waldo kitty wrote: We don't need to invent the wheel again, because others have solutions for that! then why does this thread exist? O:) I'll try to find what the usual way is to

Re: [Lazarus] Debugging Wince shows NO debugger output

2013-11-13 Thread Chris Kelling
As a work around, try using showmessage(variable.field): That will at least let you see what's in the variable at that point, and program execution should stop until you hit OK. -Chris Information in this message is intended for sole use of the recipient unless otherwise noted. On Nov

[Lazarus] Debugging Wince shows NO debugger output

2013-11-13 Thread GREP
Hi I could not get the breakpoints to work, I googled a lot, tried all the suggestions unsuccessfully. After a full day of trial I ended up that now the project does not show anything in the Debugger output window. I have this setup Windows XP, lazarus 1.0,12, svn 42478 (installed with the exe

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Michael Van Canneyt
On Wed, 13 Nov 2013, Reimar Grabowski wrote: On Tue, 12 Nov 2013 22:00:39 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: Seeing this, I can't help but think that the approximation approach may not be such a bad idea after all :D Can you elaborate what the approximation is?

Re: [Lazarus] DateDif function needed

2013-11-13 Thread waldo kitty
On 11/13/2013 1:42 PM, Reimar Grabowski wrote: On Tue, 12 Nov 2013 22:00:39 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: Seeing this, I can't help but think that the approximation approach may not be such a bad idea after all :D Can you elaborate what the approximation is? I

Re: [Lazarus] Debugging Wince shows NO debugger output

2013-11-13 Thread Martin
On 13/11/2013 20:40, GREP wrote: Hi I could not get the breakpoints to work, I googled a lot, tried all the suggestions unsuccessfully. After a full day of trial I ended up that now the project does not show anything in the Debugger output window. I have this setup Windows XP, lazarus 1.0,12,

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Bart
On 11/13/13, John Landmesser joh...@online.de wrote: I'm just a hobbyist, never went to university to study computer science. So am I. (For my background, see my userpage on the wiki) We don't need to invent the wheel again, because others have solutions for that! Of course we don't have to.

Re: [Lazarus] Lazarus 1.2RC1 Ctrl-F9 not working

2013-11-13 Thread Bart
On 11/13/13, Mattias Gaertner nc-gaert...@netcologne.de wrote: Check your short cuts in your system settings. They take precedence over any normal application like the IDE. On my Fedora 18 / KDE Ctrl+F9 does something weird to the windows that I cannot really describe or give a name. I'm too

Re: [Lazarus] DateDif function needed

2013-11-13 Thread John Landmesser
On 13.11.2013 23:14, Bart wrote: On 11/13/13, John Landmesser joh...@online.de wrote: I'm just a hobbyist, never went to university to study computer science. So am I. (For my background, see my userpage on the wiki) Found your userpage , read it with great interest. Your experience with

Re: [Lazarus] DateDif function needed

2013-11-13 Thread waldo kitty
On 11/13/2013 5:14 PM, Bart wrote: On 11/13/13, John Landmesser joh...@online.de wrote: I'm just a hobbyist, never went to university to study computer science. So am I. (For my background, see my userpage on the wiki) i probably should set something, too... while i have an account on the

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Patrick Chevalley
Hi, So the difference between 2007-01-01 12:00 and 2008-01-01 12:00 ist *not* one year? No, the base definition of the year is not a digit change, but the time it take to the Earth to return at the same point of its orbit around the Sun. This is actually 365.2422 days, and this is named

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Jürgen Hestermann
Am 2013-11-13 19:42, schrieb Reimar Grabowski: 1 julian year = 365.25 days of 86400 SI seconds each. Of course there are lots of other definitions for year but if FPC uses the julian one the value is exact and no approximation So the difference between 2007-01-01 12:00 and 2008-01-01 12:00

Re: [Lazarus] DateDif function needed

2013-11-13 Thread Michael Schnell
On 11/14/2013 07:19 AM, Jürgen Hestermann wrote: But this it totaly wrong. As is defining a meter by the count stretched rubber bands: 1 2, 3, 4 or 5 All numbers are true and all are wrong :-) :-) :-) -Michael -- ___ Lazarus mailing list