>Hi everybody
>
>When using the valid event in a form's object if an error occurs, the message "invalid entry" is displayed. How can I display my own error message?..
>
>
>Thanks in advance.
>Carlos Burgos
Hilmar gave you the best answer, but once in a while this is needed.
There is no way that I know of to change the text of the invalid message. But you can prevent it all together or simulate it.
IF lThisIsAnError
?? CHR(7)
WAIT WINDOW "That's Wrong!" NOWAIT
RETURN 0
ENDIF
RETURN .T.