Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoid "Invalid date" message
Message
De
04/09/2003 21:05:10
 
 
À
04/09/2003 16:43:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00825981
Message ID:
00826260
Vues:
24
I don't think so. His initial message just said he wanted to replace the message with a message of his own because it was annoying.

Alan

>Yes, it will always show invalid date, but I think the question was that after message "Invalid date" the error comes out and the program crash, but if is SET DATE TO GERMAN than error will not crash program.
>
>>>You should put SET DATE TO GERMAN and those messages will not show.
>>
>>The message will always show if you type in an invalid date. If you SET DATE GERMAN, and type in the date as "05.15.2003", you will get the message. No matter what you set the date to, somebody can always type it in wrong.
>>
>>Alan
>>
>>>
>>>
>>>
>>>>Certain invalid dates cannot be trapped before vfp gives an invalid date message. The only way I know to handle it is to NOT use date types in input text boxes. Use ordinary text in the date text box and write your own date validation code for the valid event. Then change it to a date type for saving into a date field.
>>>>
>>>>Alan
>>>>
>>>> >Hi,
>>>>>
>>>>>I put text box with format property set KD for date input.
>>>>>
>>>>>in operation when invalid date is entered a give 'Invalid date' mesage in upper right corner. this is annoin and i want to replace it with my message end error rutine. how to do this. set notify is off. i tried with valid event but don works.
>>>>>
>>>>>Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform