Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Curved brackets in DisplayExpression (Read 4246 times)
Paul Walters
Ex Member




Curved brackets in DisplayExpression
Apr 19th, 2009, 7:31am
 
In a set of data, I have a string attribute "Loan".  Some of the Loan strings contain rounded brackets (also known as parentheses).  For example: Kabowa 1(b) Group.   In an action that gathers various type of Loans, I have this action:

$DisplayExpression=$Loan

For notes whose Loan attribute contains a string with rounded brackets, Tinderbox ignores $Loan and uses $Name.  

Is there a different approach?
Back to top
 
 
  IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Curved brackets in DisplayExpression
Reply #1 - Apr 19th, 2009, 8:45am
 
Let's suppose we have a note:

    Name: Lincoln
    Loan: (4+1)

Your action

    $DisplayExpression=$Loan

This means that your display expression is now "(4+1), which Tinderbox tries to evaluate when it displays the name.   The displayed name will be "5".  If the display expression can't be parsed -- for example, if the value of Loan were "jumbo (5M+!)" -- then we just display $Name.

You probably want to say

     $DisplayExpression="$Loan"
Back to top
 
 
WWW   IP Logged
Paul Walters
Ex Member




Re: Curved brackets in DisplayExpression
Reply #2 - Apr 19th, 2009, 8:59am
 
Perfect.  Thank you.
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print