law Posted October 18, 2006 Share Posted October 18, 2006 I'm attempting with no success to use operator += in expression $V{totNom}+= $F{NOMGEQ}.The error is "The left-hand side of an assignment must be a variable"pointing to $V{totNom} totNom is a variable. Could anyone please tell me how to get this operator to function? ... I'm computing here a sum of the field NOMGEQ. Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted October 18, 2006 Share Posted October 18, 2006 You have to think about the expression as: New value = expression so: New value = $V{totNom}+= $F{NOMGEQ} makes not sense. The right expression is: New value = new Double( $V{totNom}.doubleValue() + $F{NOMGEQ}.doubleValue() ) Giulio Link to comment Share on other sites More sharing options...
law Posted October 18, 2006 Author Share Posted October 18, 2006 Thanks a lot! Worked like a charm! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now