>Hi,
>
>I created a login screen and allow only three chances to successfully login otherwise the program will terminate. This is what I have on the login button on the screen.
>
>IF nCount > 3 THEN
> =MESSAGEBOX("Error Message goes here", 48, "Login Failed" )
> ThisForm.Release
> ON SHUTDOWN
> QUIT
>ENDIF
>
>And I keep on getting error "Cannot Quit Visual FoxPro" and I have no idea why. Any help or suggestion is appreciated.
>
>Steve
You should call: ON SHUTDOWN Do MyQuitapp
'MyQuitApp' is system procedure which will include CLEAR EVENTS.
Edward Pikman
Independent Consultant