GET_ALL_MODELTYPES ​
The command GET_ALL_MODELTYPES retrieves the names of all modeltypes.
Syntax ​
leo-grammar
CC "Core" GET_ALL_MODELTYPES [libtype:["bp"|"we"]] [sep:strValue]
#--> RESULT ecode:intValue modeltypes:strValue
Parameters ​
libtype
(strValue) - used for determining whether modeltypes of the ADOxx Dynamic Library (bp) or ADOxx Static Library (we) should be retrieved. If missing, all the modeltypes will be retrieved.sep
(strValue) - specifies the separator with which the resulting strings should be separated. Default is a single whitespace (" ").
Returns ​
ecode
(intValue) - Contains the error code or is 0 in case of successmodeltypes
(strValue) - list of modeltype names separated by the separator defined with "sep"
Details ​
See Also ​
Examples ​
asc
# get all BP modeltypes
CC "Core" GET_ALL_MODELTYPES libtype:"bp"
SET bpmt:(modeltypes)
# get all WE modeltypes
CC "Core" GET_ALL_MODELTYPES libtype:"we"
SET wemt:(modeltypes)
CC "Core" GET_ALL_MODELTYPES
SET mt:(modeltypes)
CC "AdoScript" INFOBOX ("BP modeltypes: " + (bpmt) + "\nWE modeltypes: " + (wemt) + "\nAll modeltypes: " + (mt))
- get all BP modeltypes
- get all WE modeltypes
- get all modeltypes
- print 'em
Versions and Changes ​
Available since ADOxx 1.3