How to remove an transaction entry programmably

Aug 19, 2005 3 Replies

Dear advisors:



What I want to do is to group same items into one transaction entry when same items are rung in, e.g., intead of ItemA 1 ItemA 1 ItemA 1,



grouped as ItemA 3



I have programmed successfully for grouping, however, I could not remove the newly scanned same item entry. so the display showed (for the above example)



ItemA 3 ItemA 1 ItemA 1



I tried the following command, but error occurred. Session.Transaction.Entries.Remove(indexLast) I also tried SendKeys.Send("{DEL}") in my add-in using VB.NET, but had no luck either.



Could you please advise me how to remove an entry, or after all, what is the correct way for grouping same items?



Thanks a lot, Louis


Session.Transaction.Entries.Remove(Entry), where Entry is a TransactionEntry object, and not an index.

e.g., Session.Transaction.Entries.Remove(Session.Transaction.Entries[1])

- Evan Culver New West Technologies

lzcoup> Dear advisors:

Thank you, Evan. I'm convinced that will work, although I have not tried yet.

Evan, I am trying to do the same thing that Louis was trying and it is not sucessful. I have tried it several ways: Dim objDelete as Object Set objDelete Session.Transaction.Entries.Remove(Session.Transaction.Entries(1))

And

Dim objDelete as TransactionEntry objDelete = Session.Transaction.Entries.Remove(Session.Transaction.Entries(1))

And neither work. Would you know to correct code if i wanted to remove an item (1)? Thanks, Robert

Join the Discussion

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

Didn't find your answer?

Ask the community — no account required