onAttributeID_(id)()
Replace (id) with the actual ID of the attribute in the current configuration. This function is executed when an attribute is validated because it matches the attribute with (id). For example, use the function name onAttributeID_5 if you want the function to execute when an attribute is validated with the attribute that has an ID of 5 in the configuration. (New v12.0012)
function onAttributeID_125() {
Message(1,MSG_ERROR,'Do not use the "'+CurrentAttName+'" attribute.');
}
This example is like the previous example, but there is a limit on how many times the message will be displayed.
function onAttributeID_125() {
$styleattusederrormsg++;
if $styleattusederrormsg<4 {
Message(1,MSG_ERROR,'Do not use the "'+CurrentAttName+'" attribute. This messages is displayed up to 3 times.');
}
}