Skip to content

GET_ROOT_MODELGROUP_ID ​

The command GET_ROOT_MODELGROUP_ID returns the mgroupid of the invisible toplevel modelgroup ID.

Syntax ​

leo-grammar
CC "Core" GET_ROOT_MODELGROUP_ID

#--> RESULT ecode:intValue mgroupid:id

Parameters ​

none

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • mgroupid (intValue) - the invisible toplevel modelgroup ID.

Details ​

See Also ​

Examples ​

asc
# get root modelgroup ID
CC "Core" GET_ROOT_MODELGROUP_ID

# get all visible top level groups
CC "Core" GET_MODELGROUP_CHILDREN mgroupid:(mgroupid)

CC "AdoScript" INFOBOX (submgroupids)
  • get root modelgroup ID
  • get all subgroups
  • print list of IDs

Versions and Changes ​

Available since ADOxx 1.3