Joe,
LostFocus is an event. Calling the method doesn't actually trigger the event. It is the baseclass event handling that causes focus to change to the next control during the normal sequence of events of doing something like pressing the Tab key or clicking on another control.
You'll have to add some code to explicitly call the SetFocus() of the control that you want to have focus from inside the custom code.
>I have a txtgrid object in a class library in my project which has many custom procedures added to it, as well as utilizing many of the standard procedures. I have quit a bit of checking/verifying written into the LostFocus procedure, and need to call that code from the middle of one of my custom procedures. My problem is with my call to the LostFocus procedure: When I step through my code in the debugger, the app doesn't process the code in the LostFocus procedure. Fox doesn't error out, either. It just seems to read the line, and move on to the next one. Here's my code in my custom procedure:
>
>THIS.LOSTFOCUS()
>
>What am I doing wrong?