Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date in textbox
Message
From
20/04/1998 23:38:25
 
 
To
20/04/1998 23:27:39
Michel Lalonde
Laboratoire Médical Biron
Lachine, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00093234
Message ID:
00093572
Views:
35
>>The Error event is not fired for invalid dates.
>>
>>Vlad
>>
>>>Try using the Error Event for the textbox. You could find out what the error number is for the message you want to intercept and put your own message in there. Use the MessageBox() function for your own message in the centre of the screen.
>
>
>Use the ON READERROR command with SET NOTIFY ON
>
>Ex.
>
>** Global setup
>SET NOTIFY ON
>ON READERROR MESSAGEBOX ("Le format de la date est invalide")
>***
>
>..
>
>DO FORM ...


That is a beautiful idea! Tres bien, Michel!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform