Re: [dabo-dev] Two questions

Author: Paul McNett

Posted: 2005-03-15 at 10:18:34

Ed Leafe wrote:

> First, I tracked down a bug in our datanav Page class when working

> with date fields. The class uses the dDateTextBox's getDateTuple()

> method to get the year, month and day. The problem is that getDateTuple

> uses the date class's GetMonth() method to get its month value, and

> GetMonth() returns a zero-indexed value: IOW, it ranges from 0-11, not

> from 1-12.

Is the day zero-indexed as well?

> Should we change getDateTuple() to return the one-based month?

> Should today's date be returned as (2005, 2, 15) or (2005, 3, 15)?

I'd like to see arguments in favor of zero-based dates. At this point it

only seems sensible to make them 1-based like how the world really works.

> Second, app launching and form creation seems to have slowed down

> considerably lately. You mentioned some sort of profiling code a while

> back, but I can't find that message. Can you post it again?

I haven't noticed a slowdown, but I'll look at my notes regarding

profiling and post the instructions here.

--

pkm ~ http://paulmcnett.com

©2005 Paul McNett