QSRules: Session.Transaction.Entries.(Item.ItemType = itemtypeWeighed) ?

Syntax error again? I cannot seem to find the right branch to get the status either as integer or boolean, the itemtype of an item using QSRules in a DLL via VB6.

I thought it would be as easy as Entry.Item.ItemType, but QSRules only seems to have the ability to reference Entries, then allow for Count/Add/Remove.

There is QSRules.Session.Transaction.Entries.Element(x) Element requires an Index, but without further documentation, I am not sure what this is referencing. Whether or not it requires a currentkey call for the index.

Thanks for your continued patience as I try and hash these out.

I'm trying to increment a counter based on item type condition. Kevin

Reply to
Fisher
Loading thread data ...

For Each E In Session.Transaction.entries If E.Item.ItemType = "6" Then Session.Variable(9) = Session.Variable(9) + 1 End If

Next E

Each Entry can be addressed by the subset. Hopefully this helps someone else out!

Kevin

Reply to
Fisher

Do you have in session.variable(9) the "0" init-value ?

Antonio

Reply to
Antonio Mazzeo

Yeah, this one actually worked out fine, the conditional came later. I reset the variable every time the function is called to ensure an accurate count. Now if only I had a deleteItem hook, so I could make sure that if a weighed item is denied, the counter is immediately decremented.

Thanks for your insight Antonio!

Kevin

Reply to
Fisher

"Fisher" ha scritto nel messaggio news: snipped-for-privacy@g14g2000cwa.googlegroups.com...

I think that not exist an 'deleteItem' hook.. or a new release have this feature?

I think that a GOOD hook are for parsing the barcode...

antonio

Reply to
Antonio Mazzeo

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.