>In Visual FoxPro 3,ThisForm.WindowType was returning the WindowType value in the Unload() event. But, in Visual FoxPro is returns 0.
>
>Is there someone else using this detection in this event?
To solve the problem I had to create a form property to hold lModal value and then use this IF ThisForm.lModal... in the Unload() event for the detection.