Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

calculating variables based on other variables

calculating variables based on other variables

calculating variables based on other variables

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:

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.

RE: calculating variables based on other variables

-SET &PARAM2 = &PARAM1 + 10;

RE: calculating variables based on other variables

Hi MrGuru

Thank you. That is exactly what I needed.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close