Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     &VAR in Single Quotes Behavior

Read-Only Read-Only Topic
Go
Search
Notify
Tools
&VAR in Single Quotes Behavior
 Login/Join
 
Virtuoso
posted
Can anyone explain this?

As a rule of thumb, I have found that I should never put single quotes around an &VARIABLE name in a Dialogue Manager statement because FOCUS will think the name of the variable is the value. I always leave off the single quotes. However, whenever I use an &VARIABLE in a TABLE FILE statement such as a WHERE clause, putting single quotes around the &VARIABLE name works fine.

Just as a side note, if I add a .EVAL to the &VARIABLE name between single quotes in a Dialogue Manager statement it works properly. FOCUS evaluates the statement using the value of the &VARIABLE instead of the name.

I was just curious if anyone has experienced this behavior and can explain why.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
hi mick
without quotes inside a TF, focus is guessing its a fieldname, but if your &var is numeric, then you don't use the '.
-s




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
Susannah,

Thanks for the reply but my question is more about the Dialogue Manager behavior, not the TF bahavior. I have learned my lesson with the WHERE clause and what it thinks is a FIELDNAME!


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     &VAR in Single Quotes Behavior

Copyright © 1996-2020 Information Builders