Can anyone help with a code snippet for capturing the item Key? Thanks, Robert
Capturing Item Key
Jan 27, 2006
2 Replies
Robert,
I give up, what's the item Key?
This gets you the last added item to the transaction.
Public Function Process(mySession As Object) As Boolean Dim ikey As Integer Dim ilc As String ikey = mySession.Transaction.Entries.Count If ikey 0 Then ' Assign ilc = the last item added to the transaction ilc = mySession.Transaction.Entries.Element(ikey).Item.ItemLookupCode MsgBox ilc Else ' Quit function if item was not found in database Process = False End If End Function
Rob
"Jeff" wrote:
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required