11-22-2016 02:44 AM
Hello, i'm using Diadem 2012,
I have a non modal SUD dialog to handle data files and a subsequent script is deleting the data header structure by executing the function HDDelAll(). When the function is executed, DIADEM asks if i really want to delete the header (it seems like it's a standard user confirmation dialog, i can't find any information about this). As I handle multiple and different files by this non modal dialog this pop up is perennial and it's annoying.
Is it possible to suppress DIADEM standard user confirmation dialogs?
Greetings
Solved! Go to Solution.
11-22-2016 11:24 AM
' avoid save dialog FileModification = "ignore"
Will supress the questions for save.
data.root.clear()
will never ask as far as I know.
11-23-2016 12:23 AM
I have found a work around: for all functions that throw unwanted dialogs you can use the internal flag CmdNoMsgDisp to disable Messages (also works for Infos and Errors)
CmdNoMsgDisp = 1 'block user confirmation
Call HDDelAll()
CmdNoMsgDisp = 0 'unblock user confirmation
Be sure to reset CmdNoMsgDisp after calling the function or you will lose all following dialog inputs...
11-23-2016 12:27 AM
...I'm still wondering why this confirmation message is not shown when I execute the function by running a script (not a SUD)...