Skip to content

GET_ATTRPROF_THREAD_OF_VERSION ​

The command GET_ATTRPROF_THREAD_OF_VERSION returns the thread of the specified version of an attribute profile.

Syntax ​

leo-grammar
CC "Core" GET_ATTRPROF_THREAD_OF_VERSION apversionid:id


#-->RESULT ecode:intValue apthreadid:ids
CC "Core" GET_ATTRPROF_THREAD_OF_VERSION apversionid:id


#-->RESULT ecode:intValue apthreadid:ids

Parameters ​

  • apversionid (idValue) - the attribute profile version is passed as core id in the parameter apversionid.

Returns ​

  • ecode (intValue) - the return value ecode is zero if command was executed sucessfully and non zero on failure.
  • apthreadid (intValue) - s, the return value apthreadid contains a list with all model versions.

Details ​

See Also ​

Examples ​

asc
# get root directories
CC "Core" GET_ALL_ATTRPROF_SUBDIRS

# get all attribute profile threads in first root directory
CC "Core" GET_ALL_ATTRPROF_THREADS_IN_DIR apdirid:(VAL token(apdirids,0," "))
IF (ecode!=0)
{
  CC "AdoScript" ERRORBOX ("Error in GET_ALL_ATTRPPROF_THREADS_IN_DIR!")
  EXIT
}

# get all versions of first thread of first root directory
CC "Core" GET_ALL_ATTRPROF_VERSIONS_OF_THREAD apthreadid:(VAL token(apthreadids,0," "))
IF (ecode!=0)
{
  CC "AdoScript" ERRORBOX ("Error in GET_ALL_ATTRPROF_VERSIONS_OF_THREAD!")
  EXIT
}

# back: get thread of version
CC "Core" GET_ATTRPROF_THREAD_OF_VERSION apversionid:(VAL token(apversionids,0," "))
IF (ecode!=0)
{
  CC "AdoScript" ERRORBOX ("Error in GET_ATTRPROF_THREAD_OF_VERSION!")
  EXIT
}
CC "AdoScript" INFOBOX ("Thread is: "+(STR apthreadid))
# get root directories
CC "Core" GET_ALL_ATTRPROF_SUBDIRS

# get all attribute profile threads in first root directory
CC "Core" GET_ALL_ATTRPROF_THREADS_IN_DIR apdirid:(VAL token(apdirids,0," "))
IF (ecode!=0)
{
  CC "AdoScript" ERRORBOX ("Error in GET_ALL_ATTRPPROF_THREADS_IN_DIR!")
  EXIT
}

# get all versions of first thread of first root directory
CC "Core" GET_ALL_ATTRPROF_VERSIONS_OF_THREAD apthreadid:(VAL token(apthreadids,0," "))
IF (ecode!=0)
{
  CC "AdoScript" ERRORBOX ("Error in GET_ALL_ATTRPROF_VERSIONS_OF_THREAD!")
  EXIT
}

# back: get thread of version
CC "Core" GET_ATTRPROF_THREAD_OF_VERSION apversionid:(VAL token(apversionids,0," "))
IF (ecode!=0)
{
  CC "AdoScript" ERRORBOX ("Error in GET_ATTRPROF_THREAD_OF_VERSION!")
  EXIT
}
CC "AdoScript" INFOBOX ("Thread is: "+(STR apthreadid))

Versions and Changes ​

Available since ADOxx 1.3