Cant able to assign Queueitem variable to decimal variable

Multiple Assign-Queue Item Content: Can not assign ‘CDec(in_TransactionItem.SpecificContent(“CheckIn”))’ to ‘CashIn’.

1 Like

@Gopikrishna_S

First of of ia the required element a decimal? Or a string…if its string then its an issue

You can try like this

Cdec(in_transactionitem.specificcontent("CashIn").ToString)

And before doing this try checking if that is numeric

IsNumeric(in_transactionitem.specificcontent("CashIn").ToString)

Cheers

when i try to get in message box i am getting this error…Message Box: The given key ‘CheckIn’ was not present in the dictionary.

@Gopikrishna_S

What it means is either your transactionitem does not have CheckIn as a key…or the key is different…

Keys are case sensitive …ao please check and give the current key…

To verify…when run in debug mode…can expand transactionitem from locals panel and check the keys and the values

Cheers

1 Like

Got it Anil_G Thank You

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.