cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to define a function that returns a void?

Former Member
0 Likes
1,466

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

View Entire Topic
Former Member
0 Likes

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