on 08-06-2008 6:44 PM
Hi
I have wrote below UDF using "context" and want to pass the temp<i> to the result.
If I wrote code like this I am getting the error telling the expression result = (temp [ ]); is incorrect.
Any java guys......could you plz help me for the correct expression ??
public void test(String[] a, String[] b, ResultList result, Container container)
{
String[ ] temp = new String[100];
for (int i = 0; i < a.length; i++) {
if ((a<i>) == "001")
temp<i>= b<i>;
}
result = (temp [ ]);
}
thanks
kumar
HI,
public void test(String] a, String[ b, ResultList result, Container container)
{
String[ ] temp = new String100;
for (int i = 0; i < a.length; i++) {
if ((a) == "001")
temp= b;
}
result = (temp [ ]);
}
You must return a ResultList object
If you want to return all values of temp do this
for (int i = 0; i < temp.size(); i++) {
result.addValue(temp<i>);
}
Thnaks
Rodrigo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.