Skip to content

RenameAttrProf

This event is triggered when an attribute profile has been renamed.

Parameters

ParameterDescription
apthreadidintValue, the ID of the attribute profile thread
oldnamestrValue, the old name of the attribute profile thread.
newnamestrValue, the new name of the attribute profile thread.

Exit value:

Remarks

See Also

Example

The following example informs the user about the renaming of an attribute profile.

leo-grammar
	ON_EVENT "RenameAttrProf" {

	SETG id_APThreadlId: (appmodelid)
	SETG str_APOldName: (oldname)
	SETG str_APNewName: (newname)
	
	CC "AdoScript" INFOBOX ("AttributeProfileThreadId:  " + STR(id_APThreadlId)) 
	title: "You are renaming the model..."
	CC "AdoScript" INFOBOX ("OldName:  " + (str_APOldName))  title: "from"
	CC "AdoScript" INFOBOX ("NewName:  " + (str_APNewName))  title: "to"
	
	}
	ON_EVENT "RenameAttrProf" {

	SETG id_APThreadlId: (appmodelid)
	SETG str_APOldName: (oldname)
	SETG str_APNewName: (newname)
	
	CC "AdoScript" INFOBOX ("AttributeProfileThreadId:  " + STR(id_APThreadlId)) 
	title: "You are renaming the model..."
	CC "AdoScript" INFOBOX ("OldName:  " + (str_APOldName))  title: "from"
	CC "AdoScript" INFOBOX ("NewName:  " + (str_APNewName))  title: "to"
	
	}