Convert QueueItem to a Double

Hello There,

I was trying to convert a queue item into double to check if it is greater than 1000.
Tried Cdbl(Queue_item), Double.Parse(Queue_item), and also CovertTo.Double(Queue_item) …

nothing seemed to work. any ideas on how to do this?

Appreciate your support


What error you are getting with parse statement?

the expression be likethis

Cheers @Hara_Gopal

1 Like

Hello Palaniyappan,

it’s working but only one condition is getting evaluated. Any idea? here are the code and exception. Is there something wrong with the condition?

Convert.ToDouble(in_TransactionItem.SpecificContent("CashIn").ToString) < 1000.00 AND IsNumeric(in_TransactionItem.SpecificContent("CashIn"))

System exception.Input string was not in a correct format. at Source: If Numeric or < 1000

1 Like

Please try @Hara_Gopal


cheers :smiley:

Happy learning :smiley:

1 Like

found the answer. the issue was with the condition: the following worked …

IsNumeric(in_TransactionItem.SpecificContent("CashIn")) AndAlso Convert.ToDouble(in_TransactionItem.SpecificContent("CashIn").ToString) < 1000.00

Thank you all for your support