TagsDBGetTagCount
- Last UpdatedOct 29, 2026
- 1 minute read
This function gets a count of the project tags in the tags database.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
TagsDBGetTagCount |
Tags Database |
Synchronous |
Yes |
Supported (see Notes below) |
Not supported |
Not supported |
Not supported |
Not supported |
Syntax
TagsDBGetTagCount( numCountType )
TagsDBGetTagCount ( { numCountType | 0 | 1 | 2 | 3 } )
numCountType
The type of count to be performed, identified by one of the following values:
|
Value |
Description |
|---|---|
|
0 |
The total number of project tags in the tags database. |
|
1 |
The number of project tags supported by the target system. |
|
2 |
The number of project tags that may still be created before exceeding the number supported by the target system. |
|
3 |
The total number of pre-defined system tags in the tags database. |
Returned value
If this function is executed successfully, then it returns the specified tag count. Otherwise, it returns one of the following possible values:
|
Value |
Description |
|---|---|
|
-3 |
Wrong parameter type or inconsistent value. |
|
-2 |
Invalid number of parameters. |
Notes
This function can be executed only on the project runtime server — it cannot be called by a Graphics Script, Screen Script, or Command animation running on a thin client.
For more information about the Tags Database functions and examples of how to use them, see Using TagsDB functions to edit the tags database during run time.