Skip to content

GET_APPMODEL_ID ​

GET_APPMODEL_ID returns the ID of the ApplicationModel with the given name.

Syntax ​

leo-grammar
CC "Core" GET_APPMODEL_ID appmodelname:strValue

#--> RESULT ecode:intValue appmodel:idValue

Parameters ​

  • appmodelname (strValue) - the name of the application model

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • appmodelid (intValue) - the ID of the application model or -1 if an error has occured.

Details ​

See Also ​

GET_APPMODEL_INFO

Examples ​

asc
# Assume there is an ApplicationModel "Test"
CC "Core" GET_APPMODEL_ID appmodelname:"Test"

# show the ID
CC "AdoScript" INFOBOX ("The ID is: " + STR (appmodelid))

Versions and Changes ​

Available since ADOxx 1.3