Come to think of it, there is no "ReleaseType" form property. No luck with that one.
Glenn
>I will check it out, but in the meantime I have discovered that the following works in my initial testing:
>
>form::QueryUnload
>if mrow(this.name) < 1 and mCol(this.name) > 0
> this.xBoxPressed = .t.
>endif
>
>
>This technique is not sufficient for a lost focus event but I will check your suggestion.
>
>Glenn
>
>>Does the ReleaseType property on the Form change in time for the LostFocus event to pick it up?
>>
>>Kev
>>
>>>How can I detect that a user is pressing the "Window Close" X button in the lost focus event of a control? This control performs some validation in the lost focus event and in this case I would prefer to bypass normal validation.
>>>
>>>Thanks
>>>
>>>Glenn