Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot clear an object in use

Status
Not open for further replies.

abbyanu

IS-IT--Management
Jan 18, 2001
82
US
Hi

I'm writing a logon screen... when a user enters the right password, he's in, but when the user clicks the "logout" command button the program terminates.

i have tries putting "Quit" on the logout command button click, but i get the error "cannot clear object in use." is there a way round this problem? i just need the user to be able to terminate the program when either he can't get access into the system or he simply doesn't want to login in anymore.

please help..

-abe.
 
Hi my friend,
It looks like you forgot to issue
Code:
clear events
command before you release your form, so your form(Which is object) still in memory, that is why you can't quit.
In your button use the code..
Code:
clear events
thisform.release
Thanks Walid Magd
Engwam@Hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top