on 11-02-2011 9:33 AM
Hi Experts,
I am writing a UDF for testing purpose which is like this.
int ABAPCount = 0,PICount =0;
for (int i =0;i<Design.lenght;i++)
{
if(design<i>.equals("ABAP"))
ABAPCount++;
else if (Design<i>.equals("PI"))
PICount++;
}
if(ABAPCount !=0)
result.addValue("BS_FILE_RECEIVER");
if(PICount >=0)
result.addValue("BS_FILE_RECEIVER2");
But it is showing error as "cannot resolve symbol symbol : variable design" under if and for statements.
Can anyone please tell me the reason ?
Any kind of suggestion will be appreciated.
Thanks
Rabi
Hi Rabi,
I guess one of your input to the UDF is as shown below
String Design[]
Then you need to alter your code as shown
int ABAPCount = 0,PICount =0;
for (int i =0;i<Design.length;i++)
{
if(Design.equals("ABAP"))
ABAPCount++;
else if (Design.equals("PI"))
PICount++;
}
if(ABAPCount !=0)
result.addValue("BS_FILE_RECEIVER");
if(PICount >=0)
result.addValue("BS_FILE_RECEIVER2");
regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Only one thing to do..
Replace "design" with 'Design"
Regards,
Manjusha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>>for (int i =0;i<Design.lenght;i++)
Have you declared parameter name as Design..... and also make sure that it is case sensitive and the length spelling is wrong...you specified it as 'lenght'
Regards
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>cannot resolve symbol symbol : variable design
check ur variable name...i guess it should be "Design"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Variable "design" is declared ??
Please, remember that Java is "case sensitive", then write variables in the same key that you're declared them. ( Design -> not design ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.