I get an error when using the Door object & event on a module form. They work fine the first time the form is shown but the second time the form is shown I get an error:
[object].value = [event].data
Object reference not set to an instance of an object.
I initialize the object the same way both times the form is shown but it does not have any effect.
If I do exactly the same thing on the 'base' module (i.e. the .sbp) it works without errors. It is only when the form is on a module that the error occurs.
The demo shows this. Click "Show local Form" to show the 2nd form, close the form (red X). Open it again, all still works. Now click "Show module Form" and do the same. Close this form and reopen it. An error occurs.
Anyone have ideas or fixes please?
[object].value = [event].data
Object reference not set to an instance of an object.
I initialize the object the same way both times the form is shown but it does not have any effect.
If I do exactly the same thing on the 'base' module (i.e. the .sbp) it works without errors. It is only when the form is on a module that the error occurs.
The demo shows this. Click "Show local Form" to show the 2nd form, close the form (red X). Open it again, all still works. Now click "Show module Form" and do the same. Close this form and reopen it. An error occurs.
Anyone have ideas or fixes please?