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

Jul 06, 2005 4 Replies

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


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

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

Antonio

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

"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

Join the Discussion

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

Didn't find your answer?

Ask the community — no account required