onRecordSelection and onHide execution order

Hi,

I need to set a variabile relative to the current form (somethin like array[formname] = true) inside the onHide method and then use the same var in the onRecordSelection method of another form I open afterwards. The problem is, the onRecordSelection method of the new form I open is executed before calling the onHide method on the form I’m closing. Why’s that? Is there any specifi reason not to invert the order? I wouldn’t rellay know how to solve the case otherwise.

Thanks in advance.

how do you close/hide and open the forms? do you have some code examples?

I don’t close the form, I simply open a new one (indees, I’m using the framework, so I should maybe post in the dedicated forum). But I don’t think this has anything to do with the framework. I’ll try to setup a little sample solution to see if the behaviour replicates.

EDIT: of course I was wrong, this seems to be strictly related to the framework. Thanks anyway for your help ;)