Set the 'always do' value for the AlertQuestionDontShowAgain and AlertInformDontShowAgain standard dialogs.
PROCEDURE AlertSetAlwaysDoVal(
category : STRING;
item : STRING;
value : INTEGER);def vs.AlertSetAlwaysDoVal(category, item, value):
return None| Name | Type | Description |
|---|---|---|
| category | STRING | category name of the value. |
| item | STRING | item name in the category. |
| value | INTEGER | new value for the default. Pass in -1 for the entry to be cleared out and the dialog to show up again. |
BEGIN {User Clicked No}
AlertSetAlwaysDoVal(Options[1],Options[2],-1);
END;import vs
# Set the 'always do' value for the AlertQuestionDontShowAgain and
# AlertInformDontShowAgain standard dialogs.
category = 'Example'
item = 'Example'
value = 1
vs.AlertSetAlwaysDoVal(category, item, value)VS Functions: AlertQuestionDontShowAgain | AlertInformDontShowAgain
Availability: from Vectorworks 2012