As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
You use .EVAL when you want FOCUS to parse the value of the &varbiable after it resolves the variable. The examples in the documentation show that the &variable is set to a dialogue manager keyword such as -TYPE or -*. If the .EVAL is not used, FOCUS does not treat the -TYPE or -* as a dialogue manager command. Rather, it will treat it as a literal value.
Another example would be mathematical symbols * / + or -.
-SET &EXP = '*'; -SET &RES = 3 &EXP 5;
The above will not work because FOCUS won't know the value for &EXP is a multiplication sign as ossposed to just an asterisk.
The following will give you the desired result.
-SET &RES = 3 &EXP.EVAL 5;
The above would give you 15.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
I'm not sure there is a rule defined by IBI, but we do not use .EVAL in comparison operations (EQ,GT,LT, etc.). We do use the .EVAL operator to insert the value of an &var as we are dynamically building code (ie SQL passthru) strings. Also particularly useful for dynamically commenting out lines of code (for instance setting an &var to -* depending on parameters, where the &var.EVAL starts in column 1)
I have seem the .EVAL operator used in comparisons and it seems to work most of the time, but as I run accross those in code maintenance, I replace them according to the rule above.
Hope this helps,
Kevin
WF 7.6.10 / WIN-AIX
Posts: 141 | Location: Denver, CO | Registered: December 09, 2005