on ‎2007 Feb 26 7:42 AM
Hi all,
How can I define a custom function that returns a void?
My understanding is simple UDF can only return a string.
Is there any way around this limitation?
Thanks.
Ron
Request clarification before answering.
Hi Wee,
a simple UDF returns string......
just see your scenario.....why do you need a UDF which returns void i.e. it returns nothing.....a simple workaround for it is - create a UDF with string return type.....do all your processing in it.......use below statement to return blank string at last of your UDF:
return "";
Well if you want a UDF with void return type, then in msg mapping, when you create a UDF, choose the context option from radio button, then the function you create will have a return type of void.
Just use this UDF in your mapping and map its output to target node.
Hope this helps you.
Thanks,
Rajeev Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.