Hi Hilmar !
We generally process validation like you sugested while saving records.
But in this case I need validate inputed value immiediatly.
One way is return 0 in valid metod - in such case the message does not appear. But I want to return .f. and still have no message. Do not ask why :)
>>Hi All !
>>
>>Can somebody tell me how to change default text "Invalid input" (when valid return false). ?
>
>Using the Valid() event for validation has some problems. For instance, the user may not even select a certain control, and leave it empty.
>
>I suggest you consider the following alternative: Do all validation when the user tries to save the record. Show the user a list of violations.
>
>This is especially easy to maintain if you use a special table to store rules, and the corresponding error messages. If you are interested, I can post the corresponding functions, and the table structure.
>
>However, you might still get "invalid input" if you try to input an invalid date, like 30/Feb/2002. I don't know how to intercept this.
>
>HTH, Hilmar.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement