drousham Posted April 13, 2012 Share Posted April 13, 2012 hello ,I createed two variable , and i create a third one which culculate the sum of the two first variablesso when I do the sum , i have null value a ( because when a field of one variable is null then we can do the sum )solution please :? Link to comment Share on other sites More sharing options...
CaptnTony Posted April 14, 2012 Share Posted April 14, 2012 If I'm understanding correctly you're trying to add the values contained in two separate variables (a) and (b) and storing it in a third ©. To do this, I've found that each should be initialized to a value (zero for math) so that it isn't ever null. You cannot add a null to a value as far as I know. So, in the default value expression something like new Integer(0) should do the trick. I'd initialize all values for giggles, but at least a and b. 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