GET_MODIFIED_COUNT ​
GET_MODIFIED_COUNT returns the number of unsaved changes of a model.
Syntax ​
leo-grammar
CC "Modeling" GET_MODIFIED_COUNT [ id ] .
# --> RESULT modified:intValue .
Parameters ​
id
(modifier) - the ID must be a model ID.
Returns ​
modified
(intValue) -
Details ​
If no ID is specified, the command is applied on the active model window.
The modified result value states the modification count of the specified model. A value of 0 means that the model is not modified.
Attention: Just changes via the modeling component are counted here. Do not rely on the modeling component's change counter where modifications by core component calls (e.g. CC "Core" SET_ATTRIUTE_VALUE ...) could have been performed.
See Also ​
Examples ​
asc
CC "Modeling" GET_MODIFIED_COUNT
IF (modified) {
CC "Modeling" SAVE
}
Versions and Changes ​
Available since ADOxx 1.3