GET_MODELGROUP_NAME ​
GET_MODELGROUP_NAME returns the name of a modelgroup.
Syntax ​
leo-grammar
CC "Core" GET_MODELGROUP_NAME mgroupid:intValue
#--> RESULT ecode:intValue mgroupname:strValue
Parameters ​
mgroupid
(intValue) - specifies the ID of the modelgroup
Returns ​
ecode
(intValue) - Contains the error code or is 0 in case of success.mgroupname
(strValue) - contains the name of the modelgroup
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" GET_MODELGROUP_NAME mgroupid:(VAL token(mgroupids,0," "))
IF (ecode = 0)
{
CC "AdoScript" INFOBOX ("You selected the modelgroup: "+mgroupname)
}
Versions and Changes ​
Available since ADOxx 1.3