Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I Quit a Invalid date Message?

Status
Not open for further replies.

ledu

Programmer
Jul 3, 2001
24
MX
Look The thing is that I want to validate a textbox so I have a textbox formated like a date. When I type data like 55/25/1699, a invalid data message is diplayed but I want to change message with different sentence
How Can I do it?
 
In the error method of the textbox, or your form put in the message that you want to show the user, when the specific error occurs.

HTH,

Weedz (Wietze Veld) They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best. - Steve McConnell
 
the thing is when I type a invalid date it doesn't execute any method, I already put a message in error method, but it doesn't display the message.
When I type 23/56/5220 the focus stays in the same textbox only display invalid date message, I don't know, I already put set notify off to quit this message but the focus stays in this control, I just need to find the way to display my own message.
 
I've encountered this problem before, too, when developing a multi-language system (where "Invalid date" would always be in English).

As I recall, the only way we could get around it was make the textbox have a character value, and use " / / " as the inputmask. Since it is character type, VFP wouldn't do date-validation on it. Robert Bradley
Sr. DBA, some big company
cheap prints and oil paintings:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top