Hara_Gopal
(Hara Gopal)
December 9, 2019, 3:33pm
1
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
Hara
sarathi125
(Parthasarathi)
December 9, 2019, 3:35pm
2
@Hara_Gopal ,
What error you are getting with parse statement?
Hi
the expression be likethis
Convert.ToDouble(yourqueueitemvariable.SpecificContent(“yourfieldname”).ToString)
Cheers @Hara_Gopal
1 Like
Hara_Gopal
(Hara Gopal)
December 9, 2019, 4:49pm
4
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
in_TransactionItem.SpecificContent(“CashIn”).ToString
cheers
Happy learning
1 Like
Hara_Gopal
(Hara Gopal)
December 13, 2019, 3:29pm
6
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
Hara