Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-08 Thread George
On Sun, Dec 5, 2010 at 6:31 AM, EA7DFH wrote: > El 05/12/10 01:16, Benoît Minisini escribió: >>> >>> But then why am I getting the 'invalid date' error in 2.22?  And more >>> importantly, what do I need to do to correct it? >>> >> >> That is the question! >> >> Check first that you really have Gam

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-05 Thread EA7DFH
El 05/12/10 01:16, Benoît Minisini escribió: >> >> But then why am I getting the 'invalid date' error in 2.22? And more >> importantly, what do I need to do to correct it? >> > > That is the question! > > Check first that you really have Gambas 2.22 installed, and that you run it. > To do that,

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread Benoît Minisini
> > But then why am I getting the 'invalid date' error in 2.22? And more > importantly, what do I need to do to correct it? > That is the question! Check first that you really have Gambas 2.22 installed, and that you run it. To do that, run "gbx2 -V" in a terminal. You will get the interprete

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread George
2010/12/4 Benoît Minisini : >> > >> > Gambas 2.19/64 Suse11.3 locale Hong Kong: >> > >> > PRINT DateAdd(CDate("2/13/2010"), gb.month, -36) >> > PRINT DateAdd(CDate("3/28/2010"), gb.month, -37) >> > PRINT DateAdd(CDate("4/13/2010"), gb.month, -38) >> > produces >> > 13/02/07 >> > 28/02/07 >> > 13/02

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread Benoît Minisini
> > > > Gambas 2.19/64 Suse11.3 locale Hong Kong: > > > > PRINT DateAdd(CDate("2/13/2010"), gb.month, -36) > > PRINT DateAdd(CDate("3/28/2010"), gb.month, -37) > > PRINT DateAdd(CDate("4/13/2010"), gb.month, -38) > > produces > > 13/02/07 > > 28/02/07 > > 13/02/07 > > > > whereas > > PRINT DateA

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread Werner
On 05/12/10 01:08, Werner wrote: > On 05/12/10 00:37, Benoît Minisini wrote: > >>> 2010/2/13 Benoît Minisini : >>> >>> > I've run into a strange problem with the DateAdd function, when trying > to subtract from the current date by months. > > I initially hit the probl

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread Werner
On 05/12/10 00:37, Benoît Minisini wrote: >> 2010/2/13 Benoît Minisini : >> I've run into a strange problem with the DateAdd function, when trying to subtract from the current date by months. I initially hit the problem with the following (values are hard-coded for cla

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread Benoît Minisini
> 2010/2/13 Benoît Minisini : > >> I've run into a strange problem with the DateAdd function, when trying > >> to subtract from the current date by months. > >> > >> I initially hit the problem with the following (values are hard-coded > >> for clarity): > >> DateAdd(cdate("2/13/2010"),gb.month,-3

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-12-04 Thread George
2010/2/13 Benoît Minisini : >> I've run into a strange problem with the DateAdd function, when trying >> to subtract from the current date by months. >> >> I initially hit the problem with the following (values are hard-coded >> for clarity): >> DateAdd(cdate("2/13/2010"),gb.month,-37) >> >> It see

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-02-13 Thread George
Benoît, Thanks for the quick response. I had thought my Gambas was up-to-date, but apparently the repository I was using is not current. At least I'm aware of that now. Thank you, -George 2010/2/13 Benoît Minisini : > The bug has been fixed in revision #2697. > > Regards, > > -- > Benoît Mini

Re: [Gambas-user] BUG: Problem with DateAdd function

2010-02-13 Thread Benoît Minisini
> I've run into a strange problem with the DateAdd function, when trying > to subtract from the current date by months. > > I initially hit the problem with the following (values are hard-coded > for clarity): > DateAdd(cdate("2/13/2010"),gb.month,-37) > > It seems that any combination of Date an

[Gambas-user] BUG: Problem with DateAdd function

2010-02-13 Thread George
I've run into a strange problem with the DateAdd function, when trying to subtract from the current date by months. I initially hit the problem with the following (values are hard-coded for clarity): DateAdd(cdate("2/13/2010"),gb.month,-37) It seems that any combination of Date and Interval tha