There’s a note in the docs about showFormInDialogue. As I read it, it infers there’s no need to call for application.closeFormDialog() just ahead of making a call to display a second FID. If true, that would be welcome.
I’ve set the last argument for displaying the FID to both true and false. Same results. I’ve discovered one must indeed close one FID before displaying a second.
Am I misreading this note? What am I misunderstanding?
Nope - don’t have to close one form in dialog to show another. Just call “application.showFormInDialog(…)” again. It will open another form ON TOP OF the one currently open.
That’s why we have a “[closeall]” option when you close the form in dialog. TRUE will close all forms in the dialog, FALSE will only close the top one - and will show the one on the bottom.
bcusick:
Nope - don’t have to close one form in dialog to show another. Just call “application.showFormInDialog(…)” again. It will open another form ON TOP OF the one currently open.
That’s why we have a “[closeall]” option when you close the form in dialog. TRUE will close all forms in the dialog, FALSE will only close the top one - and will show the one on the bottom.
Excellent!
What was fouling my nest was a routine to block the dialogue’s close button (the top right X on Windows, the top left red button on Mac). By setting the global to enable the window to close, then calling the FID and then finally resetting the global to block, the routine finally works as advertised.