Quick lookup using a if b else c
Johnson, Harold A EDUC:EX
Harold.A.Johnson@gems1.gov.bc.ca
Sat, 24 Nov 2001 18:55:09 -0800
I'd use "defines" instead of putting the conditional statements directly...
my two bits
-----Original Message-----
From: Chris Sharman
To: PowerH List
Sent: 11/23/01 7:53 AM
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.