Skip to content

DELETE_MODELGROUP ​

DELETE_MODELGROUP deletes an existing modelgroup.

Syntax ​

leo-grammar
CC "Core" DELETE_MODELGROUP mgroupid:intValue

#--> RESULT ecode:intValue

Parameters ​

  • mgroupid (idValue) - id of the modelgroup that should be deleted

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success

Details ​

See Also ​

CREATE_MODELGROUP

Examples ​

asc
# let the user select a parent modelgroup
CC "CoreUI" MODEL_SELECT_BOX without-models mgroup-sel

# within the selected modelgroup, create a new modelgroup
CC "Core" DELETE_MODELGROUP mgroupid:(VAL token(mgroupids,0," "))

IF (ecode != 0)
{
   CC "AdoScript" INFOBOX "Error!\nModelgroup could not be deleted. Are there still modelreferences in the modelgroup?"
}

Versions and Changes ​

Available since ADOxx 1.3