Joe,
I would create a method on the textbox class which has the code for the checking/verifying in it and then call that from the lostfocus and wherever else you need to. Lostfocus itself is only called when the object is actually losing focus so I would guess VFP is getting confused and just ignoring your call.
>Hi,
>
>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?
>
>Thanks for reading, and any suggestions would be greatly appreciated!