Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculating variables based on other variables

Status
Not open for further replies.

snarkie

Programmer
Nov 21, 2002
4
CA
Hi everyone.

I am a newbie to WebFocus and I know there must be an easy answer to this but I have not found it so far. Here is what I am trying to do:

1) Prompt the user for a param
eg: Param1=10
2) calculate a second variable based on first variable
eg: Param2=Param1+10 (param2 should be 20)
3) call a second fex procedure from the first

I can handle steps 1 and 3 no problem. It is number 2 that I am having trouble with.

I have tried:
-DEFAULTS &PARAM1=10
-DEFAULTS &PARAM2=&PARAM1.EVAL+10

and I end up with PARAM2=10+10 instead of PARAM2=20. I cannot figure out how to cause the 10+10 to be processed before the assignment to PARAM2.

Any ideas? I know there must be something obnvious that I am missing. I have tried forcing the format to /I2 and that does not help.

Thanks in advance.
 
Hi MrGuru

Thank you. That is exactly what I needed.

Jodye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top