Hi Johnnas,
>I want my application to trap 0 or blank values before going to another object. I've tried to use the Valid Event but I do have a Cancel button. My cancel button wont activate until the 0 or blank object has a value. I need some suggestions.
So you don't want to leave a control is its value is blank, unless you hit "Cancel", then you don't care, right? Then :
Set the Cancel property of your cancel button to true, then in the valid put this:
if not lastkey() = 27 and empty(this.value)
return 0
else
return .T.
endif