[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is a time of 00:00 regarded as Null?
[Thread Prev] | [Thread Next]
- Subject: Re: Why is a time of 00:00 regarded as Null?
- From: Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
- Date: Tue, 6 Aug 2024 21:57:36 +0300
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Bit hard to give advice without proper context, but I would suggest making a simple class. The setter could set a boolean (example bValid) to indicate whether the date has been set or not. Then it could have boolean property MyDate.Valid and if it is true, you could read MyDate.Time. You can also use second boolean (bChecked) in getter to see if its validity is checked before use, if not, raise an error. That would be a mess up free oo way to do it. Jussi On Tue, Aug 6, 2024 at 9:17 PM Claus Dietrich <claus.dietrich@xxxxxxxxxx> wrote: > Hi Bruce > > As you are using 2 Date properties, one for time and one for date I would > suggest to pick some past date , for example 01-01-1950 or maybe your > birthday. > and then use that date for ALL your times as you set them. > > A "Dummy-Date-Component" .... good idea. Thanks! > > Best regards > > Claus > > >
Re: Why is a time of 00:00 regarded as Null? | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Why is a time of 00:00 regarded as Null? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Re: Why is a time of 00:00 regarded as Null? | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Why is a time of 00:00 regarded as Null? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |