Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

TagsDBGetNextTag

  • Last UpdatedOct 29, 2026
  • 2 minute read

TagsDBGetNextTag is a built-in function that gets the name of the next tag in the tags database, after the TagsDBGetFirstTag function has been executed to get the first tag. It acts like an array pointer, with the array being the tags database, and it can be used either to generate a list of tags or to process the tags one at a time, depending on how you write your script.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

TagsDBGetNextTag

Tags Database

Synchronous

Yes

Supported (see Notes below)

Not supported

Not supported

Not supported

Not supported

Syntax

TagsDBGetNextTag()

TagsDBGetNextTag ( )

This function has no parameters.

Return value

If this function is executed successfully, it returns the name of the next tag. Otherwise, it returns one of the following possible values:

Value

Description

-2

Invalid number of parameters.

-3

No tag found; at end of database.

Notes

This function can be executed only on the project server. It cannot be called by a Graphics Script, Screen Script, or Command animation running on a project client.

Also, this function can be called at any time; the TagsDBBeginEdit function does not need to have been executed beforehand. If that is the case, however, then TagsDBGetFirstTag and TagsDBGetNextTag can be used only to generate a list of tags. They cannot be used โ€” along with with the other Tags Database functions โ€” to edit the tags unless TagsDBBeginEdit has been executed.

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.

In This Topic