Skip to Content
0
Former Member
Aug 30, 2007 at 09:11 AM

Udf for context change

294 Views

Hi All,

I write a UDF to change context but it is not working properly

can any please guide me. code is ,

for (int i = 0 ; i<Plant.length ; i ++)

{

int b = 0;

for (int j = 0 ; j<Plant.length ; j++)

{

if (i!=j)

{

if (Plant<i>.equals(Plant[j]) )

{

b++;

}

}

}

if (b > 0 )

{

result.addValue(ResultList.CC);

}

else

{

result.addValue ("true") ;

}

}

In this code it is working for 'result.addValue ("true")' but not for 'result.addValue(ResultList.CC)'

Can any one tell me where is a problem?

---Rohit