on 05-10-2018 1:26 PM
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!!
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!
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.