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

CC "Core" GET_ATTRPROF_THREAD_ID_OF_NAME apthreadname:str apclassname:str .
#-->RESULT ecode:intValue apthreadid:id

Parameters

apthreadnamestr
apclassnamestr

Returns

ecodeintValue, the return variable ecode is set to zero if command succeeded and to a non zero value if failed.
apthreadidid, the return variable apthreadid contains the ID of the AttrProf thread which matches or -1 if an error occured.

Remarks

See Also

Example 1

# 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))