on 03-23-2011 8:56 AM
I want to substitute the value null by the value 1
I tried to write a UDF checkinng for null and changing it but it is not working
Object object = null;
for(int i=0; i<a.length;i++)
{
object = (Object)a<i>;
if (object==null)
result.addValue("1");
else
result.addValue(a<i>);
}
any help will do
Thanks
any parameter of a UDF is a String. There is no need to do something like.
object = (Object)a<i>;
and it does not make sense to have
if (object==null)
as this can never happen.
you can check
if (a.length == 0)
to see if there are no values in context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.