error while closing form:Form control Object Not initialized.

hello ,

I have written select control method in Sales table form in 2009 to perform some functionality like to opening a browser on click on “form group control” its all working fine .but the problem is form is not getting closed.

Its because the object is used before initializing.For now i used flags to enter into that logic in can close() and task() method.