Re: [Gambas-user] datediff problem

2015-08-13 Thread Jussi Lahtinen
I think this fixes the problem (in gbx_date.c): int DATE_diff(VALUE *date1, VALUE *date2, int period) { int64_t diff = 0; int sdiff, tmpdiff; DATE_SERIAL ds1 = {0}; DATE_SERIAL ds2 = {0}; bool neg; switch (period) { case DP_DAY: case DP_WEEK:

Re: [Gambas-user] datediff problem

2015-08-13 Thread adamn...@gmail.com
On Thu, 13 Aug 2015 16:22:13 +0200 "Adrien Prokopowicz" wrote: > Le Mon, 10 Aug 2015 13:41:17 +0200, Jussi Lahtinen > a écrit: > > > Sorry to say, but this doesn't seem to be fixed. > > > > ? DateDiff(Now, DateAdd(Now, gb.Day, 2), gb.Day) > > 1 > > > > > > Jussi > > > > On Sat, Aug 1, 2015 at 7

Re: [Gambas-user] Why syntax error?

2015-08-13 Thread Rolf-Werner Eilert
Am 13.08.2015 16:06, schrieb Adrien Prokopowicz: > Le Thu, 13 Aug 2015 12:05:06 +0200, Adrien Prokopowicz > a écrit: > >> Le Thu, 13 Aug 2015 11:19:09 +0200, Sprachschule Eilert >> a écrit: >> >>> This produces a syntax error, but it doesn't tell me why: >>> >>> Private Const $TB As String = Ch

Re: [Gambas-user] datediff problem

2015-08-13 Thread Adrien Prokopowicz
Le Mon, 10 Aug 2015 13:41:17 +0200, Jussi Lahtinen a écrit: > Sorry to say, but this doesn't seem to be fixed. > > ? DateDiff(Now, DateAdd(Now, gb.Day, 2), gb.Day) > 1 > > > Jussi > > On Sat, Aug 1, 2015 at 7:16 PM, Benoît Minisini < > gam...@users.sourceforge.net> wrote: > >> Le 01/08/2015 17:52

Re: [Gambas-user] Why syntax error?

2015-08-13 Thread Adrien Prokopowicz
Le Thu, 13 Aug 2015 12:05:06 +0200, Adrien Prokopowicz a écrit: > Le Thu, 13 Aug 2015 11:19:09 +0200, Sprachschule Eilert > a écrit: > >> This produces a syntax error, but it doesn't tell me why: >> >> Private Const $TB As String = Chr$(9) >> >> If I leave "Const" away, it runs, so it should

Re: [Gambas-user] Why syntax error?

2015-08-13 Thread Adrien Prokopowicz
Le Thu, 13 Aug 2015 11:19:09 +0200, Sprachschule Eilert a écrit: > This produces a syntax error, but it doesn't tell me why: > > Private Const $TB As String = Chr$(9) > > If I leave "Const" away, it runs, so it shouldn't be the $TB which > disturbs, as it is accepted as a variable naming. The r

[Gambas-user] Why syntax error?

2015-08-13 Thread Sprachschule Eilert
This produces a syntax error, but it doesn't tell me why: Private Const $TB As String = Chr$(9) If I leave "Const" away, it runs, so it shouldn't be the $TB which disturbs, as it is accepted as a variable naming. The rest should be ok, too. So I can't find any reason... Thanks for any hint Ro