You need to sign in to do that
Don't have an account?

Method does not exist or incorrect signature: [LIST:Decimal].get(String) ????
Hi :
If I have:
List<Decimal> rTypes2 = new List<Decimal>(); for(Account rType :[SELECT Term FROM Subject]) { rTypes2.add(rType.Term); } for(Account a:trigger.new){ if(rTypes2.get('Term') = 9.1) {} } I am getting an error on rTypes2.get('Term')?????
I am getting an error on rTypes2.get('Term')?????
Hi Doc.. Thanks for the reply.. So I tried the following:
(Decimal)rTypes2.get('Term')<==No work double.Valueof(rTypes2.get('Term'))<==nope rTypes2.get('Term').decimalValue(); <== nope rTypes2.get('Term.decimalValue()'); <== nope
Boy. I can understand the fustration. I have a lot of post with false leads. Try this:
rTypes2.add(double.valueOf(rType.Term));
If this does not work search on "valueOf" for more help.