May want to check out the ON ERROR command. That might help.
>If i have a field-level validation or record-level validation and it fails, visual foxpro shows a window with three options: ok, revert or help. I would like to trap the error before it occurs and show other window or decide wich action to take but avoid the appearance of the default vfp message window due to the following reasons:
>
>1. it's not clear to an end-user what to do when the options are Ok, Revert or help.
>
>2. I want to decide what to do, and show a more elegant message.
>
>3. My users don't speak english, so this message increases confussion.
>
>Thanx in advance
ICQ 10556 (ya), 254117