GET_ATTRPROF_THREAD_ID_OF_NAME ​
GET_ATTRPROF_THREAD_ID_OF_NAME returns the ID of the AttrProf with the given name of the given AttrProf-class.
Syntax ​
leo-grammar
CC "Core" GET_ATTRPROF_THREAD_ID_OF_NAME apthreadname:str apclassname:str .
#-->RESULT ecode:intValue apthreadid:id
Parameters ​
apthreadname
(strValue) -apclassname
(strValue) -
Returns ​
ecode
(intValue) - the return variable ecode is set to zero if command succeeded and to a non zero value if failed.apthreadid
(idValue) - the return variable apthreadid contains the ID of the AttrProf thread which matches or -1 if an error occured.
Details ​
See Also ​
Examples ​
asc
# Assume there is a AP thread "ganztags" of AP class "Anwesenheit" (Standard-AB)
CC "Core" GET_ATTRPROF_THREAD_ID_OF_NAME apthreadname:"ganztags" apclassname:"Anwesenheit"
# show this name
CC "AdoScript" INFOBOX ("The ID is: " + STR (apthreadid))
Versions and Changes ​
Available since ADOxx 1.3