on 01-29-2009 12:48 PM
I have a "modal" form which is, at a point of time, made visible = false.
when i close my addon I would like to completely close it. but when i do form.close() I get exception about "invalid form".
any help how to solve this?
Hi
Are you making sure you are referencing the correct form in the oForm variable? My guess is that you first have to load the form using ...
oForm = SBO_Application.Forms.Item(strUniqueID)
oForm.Select()
where strUniqueID is your form referenced by its unique id name.
hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cristian,
You can put the call to Form.Close in try block and then ignore the exception when it is caught in the catch block. Or you can explicitly check if the form exists in the Forms collection before trying to close it.
HTH
Aravind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.