Alvin,
If you have gotten a setfocus to execute in a vlaid event without getting a clear error that says "SetFocus is not allowed in a Valid" then you have found a bug in VFP. It is not an issue of the setfgocus being a questionable thing to do, it is that VFP does NOT allow it ever. Besides the event to use for the action of a command button is the Click event and not the valid. The Valid event on a command button is there strictly for backwards compatibility.