Skip to Content
0
Former Member
Feb 13, 2012 at 06:03 PM

UDF Error

11 Views

Dear All,

Am getting wired error in Advanced UDF.

PI getting the Input as String[] a={"01","02","03","04","05","06"}; .and its returning the output as 1 instead of 6 when i am trying to get the length of the String Array

find below sample code:

Assume that array string " b "has a value {"a","b","c","d","e","f"}

public void Sample(String[] a,String[] b,String[] c,String[] d,ResultList result,Container container)

{

HashMap y=new HashMap();

for(int i=0;i<a.lenght;i++)

y.put(""b of [ i ],""a of [ i ]);

} note : i used b of i instead actual because here its doesn't allow me to use exact one what we use in coding

i am trying to read all the value of the string array "a" to HashMap " y" for some other calculation but PI copy only the first value i.e "01"

Thanks in advance for your valuable solutions

Regards,

Manikandan