[futurebasic] Re: [FB] [FB^3] Finding a 'Legal' Time

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2001 : Group Archive : Group : All Groups

From: Jay <dakotaconnect.com@...>
Date: Thu, 20 Dec 01 02:03:13 -0600
>I think that this sort of works but because the seconds derived from a
>dateTime are large negative numbers, I'm worried that it wont work for all
>values of startHour%, endHour%. Note if startHour% = endHour% then every
>nowHour% is 'legal'.
>
Michael,

I think your code is fine, but you can address your concern by 
eliminating the negative numbers. Change
>dim nowSecs&, startSecs&, endSecs&, NowTimeIsLegal%
to:
dim nowSecs&`, startSecs&`, endSecs&`, NowTimeIsLegal%

That should be all you need. Let me know if I've misunderstood.

 e-e
 =J= a  y
  "