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

Edge HMI

SetTagValue

  • Last UpdatedOct 29, 2026
  • 1 minute read

Sets the value of the specified tag in the tags database.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

SetTagValue

Tags Database

Synchronous

No

Supported

Supported

Supported

Supported

Supported

Syntax

SetTagValue("strTagName", TagValue)

strTagName

The name of the tag. Specify a string enclosed in quotes (double quotes or single quotes).

Note: If this parameter is enclosed in quotes, the string literal will be used. Otherwise, the value of the tag/expression will be used.

TagValue

The new value for the specified tag. Enclose a string value in quotes (double quotes or single quotes). Do not use quotes for non-string values.

Return value

Value

Description

-1

Invalid tag name

0

No error

Examples

Tag Name

Expression

TagA

SetTagValue( "TagA", "Hello" ) // Return = Hello

TagA

SetTagValue( "TagA", 123 ) // Return = 123

TagA TagB = 15

SetTagValue( "TagA", TagB ) // Return = 15

In This Topic