<< Click to Display Table of Contents >>
SetValue |
SetValue(TagName, NewVal)
This method sets the value of an object inside a server. This method searches for an object or property executed on a server and sets the value specified in the TagName parameter. The type and value of the NewVal parameter must be supported by the object specified in TagName. Example:
Sub Button1_Click()
' When clicking Button1 sets value 20
' to Value property of the tag
Application.SetValue "DataServer1.InternalTag1", 20
End Sub