" is not a valid integer value.

In a journal/diary application, when I try to add a new entry by selecting a date I am getting the following error:

 " is not a valid integer value.

What is the cause of this and is there a way to prevent it?

Thanks

John
JohnEAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rwilson032697Commented:
Do you have a numeric field that is being validated when you select the date?

Cheers,

Raymond.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alisher_NCommented:
depending on which component you use
to enter the date you can use a mask
telling your program what symbols to accept or no - so you can disable
letters input. Then, if you entered
a digits, but in wrong combination
(like 45/75/2000) you should write
OnChange or OnEnter event handle where you can validate entered date for
acceptable ranges (1..31,1..12 etc)
additional work maybe required to
check dates for leap years, 1996,2000,2004)


0
JohnEAuthor Commented:
Raymonds comment sent me searching down another path.

As it turns out, selecting the date was a trigger for another process that was causing the error. An integer value for a font size setting had been deleted, so causing the error.

Thanks for your help, sorry to take you down the wrong path.

Raymond deserves some points for causing me to think in the new direction.

John
0
rwilson032697Commented:
Hi John,

Glad you found the problem! If you want to award me the points from this Q you can use the 'Accept comment as answer' link. Or, if you prefer, you can delete this Q and post a dummy Q eg: 'For RWilson' with the number of points you want to give.

Cheers,

Raymond.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.