Get current item POS

Hello All the gurus of RMS,

How can i get the item description of current selected item. I know that i can loop through the items like this and display the description: Dim i As Integer

For i = 1 To session.Transaction.Entries.count MsgBox(session.Transaction.Entries.Element(i).Description) Next

But it loops through all the items and messages all the item description ... I just want the last added item description to display..

Any help will be great!

Reply to
Fez
Loading thread data ...

How to select the current item programmaticaly: Save the key of the current TransactionEntry - IE: Transaction.CurrentEntryKey Use your loop to find the Transaction.Entry with that key

You might like to know that if you use the Add method with the key as the last parameter the new entry will be positioned after the current entry.

Reply to
Bill

Hi,

If you want last item only try

MsgBox(session.Transaction.Entries.Element(session.Transaction.Entries.count).Description)

Regards, Arthur

Reply to
Arthur Hanusek

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.