Jim,
Is there a possibilty that you have code elsewhere (in another event of the textbox maybe?) that may be causing this?
>Nope, nothing. I've placed a MessageBox in the loop and it shows that it gets to the else. I assume that it's returning a .t. but I may be wrong. BTW I'm using VFP3.0b.
>
>>I see. That
is odd. Are you positive it is in fact returning .T.? You don't get the dialog box?
>>
>>>The problem is when it returns .t. it still remains in the TextBox. I can't get our.
>>>
kenweber
GCom2 Solutions
Microsoft Certified Professional