[Gambas-user] dateadd overflow...

Stephen Bungay sbungay at ...981...
Tue Sep 6 04:44:39 CEST 2011


Gambas 2.23

  I have three variables, all of type date.

mdStartTime
mdEndTime
newEndTime

The first two contain time values with no date portion. This was 
obtained from a function which used

Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2]))

to generate the value to return. It ends up that the following get assigned;

mdStartTime = 10:01:31
mdEndTIme = 10:16:31

I want to use DateAdd to get a new value based on the mdEndTime value + 
15 minutes. To do this I used

newEndTIme = DateAdd(mdEndTime, gb.minute, 15)

   And promptly got an Overflow error.

   Now I'm puzzled. Is there a problem with DateAdd?


Regards
Steve.




More information about the User mailing list