Hi all,

Hoping someone can point me in the right direction as I'm going round in circles with this now. I'm trying to write a vb.net client - I can connect to the server, I can subscribe to a table, but I cannot for the life of me work out how to trigger something when one of the subscribed items changes. The code I've got so far is below;

Dim lsClient = New Lightstreamer.DotNet.Client.LSClient
Dim lsClientConn = New Lightstreamer.DotNet.Client.ConnectionInfo
Dim lsClientListenHandy As Lightstreamer.DotNet.Client.IHandyTableListener = Nothing

------------------------------------------------------

lsClient.OpenConnection(lsClientConn, lsClientListenHandy)



'fields, group, items, schema

Dim arritems() = {"item1", "item2", "item3", "item4", "item5", "item6", "item7", "item8", "item9", "item10", "item11", "item12", "item13", "item14", "item15"}
Dim arrFields() = {"last_price", "time", "pct_change", "bid_quantity", "bid", "ask", "ask_quantity", "min", "max", "ref_price", "open_price", "stock_name", "item_status"}

Dim lsExtendedTable = New Lightstreamer.DotNet.Client.ExtendedTableInfo(arri tems, "MERGE", arrFields, 0)
lsExtendedTable.DataAdapter = "QUOTE_ADAPTER"
lsClient.SubscribeTable(lsExtendedTable, lsClientListenHandy, True)



And I also have a class declared for the lsClientListenHandy, which I thought was the key but I'm clearly missing something.

Public Class Listen
Implements IHandyTableListener
Public Shared sResult As String
Sub OnUpdate(itemPos As Integer, itemName As String, update As Lightstreamer.DotNet.Client.IUpdateInfo) Implements IHandyTableListener.OnUpdate
sResult = update.ItemPos.ToString & " - " & update.ToString
Controller.UpdateRec(sResult)


Throw New NotImplementedException()
End Sub

Public Sub OnSnapshotEnd(itemPos As Integer, itemName As String) Implements IHandyTableListener.OnSnapshotEnd
Throw New NotImplementedException()
End Sub

Public Sub OnRawUpdatesLost(itemPos As Integer, itemName As String, lostUpdates As Integer) Implements IHandyTableListener.OnRawUpdatesLost
Throw New NotImplementedException()
End Sub

Public Sub OnUnsubscr(itemPos As Integer, itemName As String) Implements IHandyTableListener.OnUnsubscr
Throw New NotImplementedException()
End Sub

Public Sub OnUnsubscrAll() Implements IHandyTableListener.OnUnsubscrAll
Throw New NotImplementedException()
End Sub
End Class

What am I missing to get the OnUpdate to do anything in code? (I've got a test lightstreamer server set up and I can see it sending updates in the dashboard.

Thanks in advance!