>i have form1 with MDIform set to .T. in it's init event i have
>DO FORM user TO loclicked
>IF loclicked
>Thisform.Caption="Release"
>Thisform.Release()
>ENDIF
>form user will ask for user name and password, it has two buttons OK and >CANCEL. if my cancel button is clicked, my form1's caption changes >to "Release".
>but why is it not Released?
Here is my guess, an object can not be released if there is a live reference to it. Using the to loclicked makes a form object variable reference.
Try loclicked = .null. to release the form
Carole Shaw
Fred Hutchinson Cancer Research Center
Eagles may soar, but weasels don't get sucked into jet engines.