I'm trying to close all open non-modal dialog boxes before recreating a new one. (Just in case one gets left open)
However, it seems that SudNonModalDlgCount does not contain the correct count of non modal dialog boxes. If I run the code below, I get an error at the "IsValid" call. The error is: "Object required: 'SudNonModalDlgLst(...)' " How can I ensure that all open non-modal dialog boxes are closed, and not simply hidden?
For i = 1 to SudNonModalDlgCount
If SudNonModalDlgLst(i).IsValid then