Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

can we pass a function in a variable ??

Hi all,

I have an issue,please could you guide me solving this??

I have a logic as shown below.can we implement this using variable and function??

eg: variable  v(x)=x+2

now can I pass my x value ??

like v(2)=4,

      v(3)=5 etc...  how can we do this??

regards,

Sahana

1 Solution

Accepted Solutions
senpradip007
Specialist III
Specialist III

Hope this sample qvw will help you.

View solution in original post

6 Replies
senpradip007
Specialist III
Specialist III

Try like myFunction = rangesum($1+2)

Var.png

MK_QSL
MVP
MVP

Example...

Create a variable

vSUM

Definition

RangeSum(10 + $1)

Create a text box

=$(vSUM(10))

or

=$(vSUM(15))

You can see that whatever value you are passing while calling variable, 10 is added to the total...

Hope this helps..

senpradip007
Specialist III
Specialist III

Hope this sample qvw will help you.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Check this thread hope it helps you.

Calculating Months difference between two dates

Regadr

jagan
Luminary Alumni
Luminary Alumni

Hi,

Check this thread hope it helps you.

Calculating Months difference between two dates

Regards,

Jagan.

Not applicable
Author

thanku all for your valuable help.