on 02-12-2008 1:12 PM
Hi to all,
I have a very simple UDF that has Context (or Queue) as input types. My problem is that I have two inputs which of one is a Constant. Then, I receive a compile error (ArrayIndexOutOfBound caused by the zero length of the queue with the constant in input...)when I try to display the out queue into mapping. The question is...
How can I use a costant as input parameter when the input type is a context or a queue?
Thanks to all!
The simple thing to do is use map with default node function after your constant. then there will not be proper value as an input to your function.
Reward points if it helps you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you have a constant as input, you can access this with a[0] only.
You can avoid errors by checking if(a.length > 0) ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gabriele Morgante ,
don't think much,if input has constant value..
just diclare constant value in field and map it to UDF as one of the inputs..
and read it inside the UDF and do further reqiured mappings..
Regards,
Ramesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.