>I guess THISFORM.ltextbox never gets set to .F.
>>
>> That doesn't work. I still can not get the focus off the textbox.
>>>Beth,
>>>
>>>You should issue NODEFAULT when you want to keep focus only.
>>>
IF THISFORM.ltextbox = .T.
>>> THISFORM.textbox1.SETFOCUS()
>>> NODEFAULT
>>>ENDIF
>>>THIS.VALUE = ""
>>>THISFORM.REFRESH()
>>>
Sergey, Beth
PMFJI
But, maybe on "thisform.refresh" she has any command that affect the correctly behavior..
On this case a RETURN will help
procedure ltextbox.valid
IF THISFORM.ltextbox
NODEFAULT
THISFORM.textbox1.SETFOCUS()
return
ENDIF
THIS.VALUE = ""
THISFORM.REFRESH()
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20