Quick lookup using a if b else c

Deskin, Bob Bob.Deskin@Cognos.COM
Fri, 23 Nov 2001 21:31:45 -0500


You can't use a conditional USING directly the way you want. However, since
it's an expression, you should be able to specify a defined item to provide
the value. That defined item can have the conditional expression.

Bob Deskin              
PowerHouse Web Product Manager, Application Development Tools, Cognos Inc.
bob.deskin@cognos.com (613) 738-1338 ext 7268 FAX: (613) 727-1178
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA

-----Original Message-----
From: Chris Sharman [mailto:chris.sharman@ccagroup.co.uk]
Sent: Friday, November 23, 2001 10:53 AM
To: PowerH List
Subject: Quick lookup using a if b else c



Trying to compile the Quick fragment below (PH 7.10G3, VMS 7.3).
As far as I can tell from the manual it should be possible to say "USING
conditional-expression", but I can't find the right place to put the
parentheses.

Can anyone help ?

Thanks,
Chris Sharman

QD> field trans-id required hidden label "Id" at 4,1 data at ,4 upshift &
QD>     lookup on agents via agent-number using fieldtext nowarn, &
QD>             on pd-address via invoice-number using &
QD>                     nconvert(fieldtext[2:7]) if ("I"=fieldtext[1:1])
else nconvert(fieldtext) nowarn, &

^^^^
*E* Expected:  AND  OR  <eol>  ID  NOID  LABEL  NOLABEL  DATA  SIZE  FOR
FORMAT  POPUP  MARK  NOMARK  HIDDEN  SELECTBOX



-----------------------------------------------------------------------

Any views expressed in this message are those of the sender and not
necessarily those of CCA Group.  The unauthorized use, disclosure,
copying or alteration of this message is forbidden.  The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed.  Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.

= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate, or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender by
e-mail promptly that you have done so.  Thank You.