For the example below:
timebindings(1) is as bindingsource
and timebindings(1).datasource = s1values(1)
I have a label with a binding as such: label14.databinding.add("Text", timebindings(1), "Timestamp")
s1values(1) and s1valueread(1) are both opc.da.itemvalueresult objects
In the code below. When I am debugging. If I skip the first two lines and do an immediate execution
of s1valueread(1).timestamp = "11/22/2013 10:00:00 AM" then execute the resetbindings loop the label control will properly update.
The problem is when I execute the line s1valuesread = s1values to update the data source; then execute the resetbindings loop the label no longer updates.
If I look at the datasource for timebindings(1) during debug it clearly shows as not having changed.
Why does the link between the bindingsource and it's datasource seem to be lost when I set s1valueread = s1values? It seems like I am missing something simple.
Thanks in advance for any assistance.
Private Sub refreshvalues()
s1values = opcserver.Read(s1items)
s1valueread = s1values
For i As Integer = 0 To 7
timebindings(i).ResetBindings(False)
Next
End Sub