In a response window I use CloseWithReturn to send a object back to the parent window.
cb_ok.clicked event
CloseWithReturn(Parent, ids_data)
But how may I do a CloseWithReturn on window close (i.e. user clicks on window close, and not the OK button)
I've tried to capture this in the closequery event, but I can't add a CloseWithReturn statement there as it would cause a loop.