How to remove an transaction entry programmably

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

Reply to
lzcouponex
Loading thread data ...

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:

Reply to
Evan Culver

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

Reply to
lzcouponex

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

Reply to
rshuptrine

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.