Skip to content

SET_MODELGROUP_NAME ​

SET_MODELGROUP_NAME renames an existing modelgroup.

Syntax ​

leo-grammar
CC "Core" SET_MODELGROUP_NAME mgroupid:intValue mgroupname:strValue

#--> RESULT ecode:intValue .

Parameters ​

  • mgroupid (intValue) - the ID of the model group
  • mgroupname (strValue) - the new name to be set

Returns ​

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

Details ​

See Also ​

Examples ​

Getting the name of a modelgroup

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

# get the name of the modelgroup
CC "Core" SET_MODELGROUP_NAME mgroupid:(VAL token(mgroupids,0," "))
                              mgroupname:"New Name"

IF (ecode != 0)
{
   CC "AdoScript" INFOBOX ("Renaming failed: " + STR ecode)
}

Versions and Changes ​

Available since ADOxx 1.3