Get ItemID from Hook

Sep 22, 2008 2 Replies

I am trying to figure out the ItemID of an item rung up using a hook. The following code shows the Description of the item. Does anyone know how to get the actual ItemID?



Public Class Test Public Function Process(ByRef Session As Object) As Boolean Dim i As Integer



For i = 1 To Session.Transaction.Entries.Count MsgBox(Session.Transaction.Entries.Element(i).Description) Next



Process = True End Function End Class


Thanks,



--Dan


MsgBox(Session.Transaction.Entries.Element(i).item.id)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required