Skip to content

GET_MODEL_THREAD_OF_VERSION ​

GET_MODEL_THREAD_OF_VERSION returns the core id of the model thread of specified model version.

Syntax ​

leo-grammar
CC "Core" GET_ALL_THREAD_OF_VERSION	modelversionid:intValue

#--> RESULT ecode:intValue modelthreadid:intValue
CC "Core" GET_ALL_THREAD_OF_VERSION	modelversionid:intValue

#--> RESULT ecode:intValue modelthreadid:intValue

Parameters ​

  • modelversionid (intValue) - the ID of the model version

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • modelthreadid (intValue) - the core id of the thread of specified model version.

Details ​

See Also ​

Examples ​

asc
CC "Core" GET_ALL_MODEL_VERSIONS
SET first:(token(modelversionids, 0, " "))
CC "Core" GET_MODEL_THREAD_OF_VERSION modelversionid:(VAL first)
IF (ecode) {
    CC "AdoScript" ERRORBOX ("Error: " + STR ecode)
} ELSE {
    CC "AdoScript" INFOBOX ("Model thread ID: " + STR modelthreadid)
}
CC "Core" GET_ALL_MODEL_VERSIONS
SET first:(token(modelversionids, 0, " "))
CC "Core" GET_MODEL_THREAD_OF_VERSION modelversionid:(VAL first)
IF (ecode) {
    CC "AdoScript" ERRORBOX ("Error: " + STR ecode)
} ELSE {
    CC "AdoScript" INFOBOX ("Model thread ID: " + STR modelthreadid)
}

Versions and Changes ​

Available since ADOxx 1.3