Skip to Content
avatar image
Former Member

Passing parameters to Functions in BODS

Hi Experts,

Can you explain the purpose of passing parameters to Function in BODS scripts?

And also about the significance of return parameters.

Thanks in advance!!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 16, 2018 at 04:40 AM

    Hello Harish,

    Parameters are the values that are passed to a particular function. These parameters then manipulate the data and return the result.

    Consider the below example:

    replace_substr() accepts 3 parameters as input values.

    Consider $ROOT_FILE = 'RAJAN' as the input string. User want to replace letter 'A' with 'Z', since the function requires 3 parameters: Input String which needs to be manipulated, which character/value needs to be modified, what value should be replaced in the input.

    So in the above string 'A' needs to be replaced with 'Z'.

    Upon execution:

    About return parameters, the function returns some output value. Here the returned string is 'RZJZN'.

    Hope it helps!


    Add comment
    10|10000 characters needed characters exceeded