>>Hmm...I tried this and it worked. I tried the exact same code before without the 'nodefault' and it didn't work. Well, hey, I still say there should be some sort of 'required' attribute for controls, but this seems to work so I guess this is what I'll use. Thanks Bruce, Michael, and everyone else for their assistance!
>>
>
>What exaclty is NODEFAULT and what does it do? I did a search of the online help and the master index, and can't find it.
>
>Jeff Rusch
NODEFAULT is the opposite of DODEFAULT. It prevents the default method or event from firing. In this case, since we have nodefault after our messagebox, the lostfocus method AND event stops there, so the control never looses focus.
In the Visual Foxpro 5 help index, i found nodefault (it's actually under the "DEFINE CLASS" listing, but when you type "help nodefault", that is what comes up. If you look towards the bottom of this, you'll see NODEFAULT defined.