on 12-10-2009 2:43 PM
Hello experts,
I get a list of values that consists of "true" and "false". I need to delete all false-values.
Now I wrote a UDF to delete those false values:
public void deleteFalse(String[] a, ResultList result, Container container){
String f="false";
for(int i=0;i<a.length;i++)
{
if (a<i>.equals(f))
result.addSuppress();
}
}
But now it adds "SUPPRESS" for the "false" values, but does not return the "true" values. How do I return the "true" values?
Could you please help me to solve this? Do I need to use a different method than "addSuppress"?
Thank you,
Peter
Edited by: Peter Wallner on Dec 10, 2009 3:47 PM
I solved it, now it works:
String f="false";
for(int i=0;i<a.length;i++)
{
if (a<i>.equals(f))
result.addSuppress();
else
result.addValue(a<i>);
}
Best regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.