Hallo Bryan,
Bryan Smith schreef dit aan Jorgen De Gier:
BS> The calendar component will act "intellegently" if you start with say 31
BS> Jan of some year, and then add 1 to the month, i.e. it will flip to Feb
28
BS> or 29 as appropriate. Do you know what Decode/Endcode will do ?
No intellegence AFAIK.
EncodeDate will throw an exception if you supply the wrong date.
Within an exception handler you can lower the day and try it again until no
exception occurs.
It's more work as using the TCalendar component, but a better solution in my
point of view.
Toedeloe,
Jorgen de Gier
--- GEcho 1.00
---------------
* Origin: Hoi! (2:280/606.9)
|