The Iff function and Case statement can be found on the help screens in RB
with examples.
Mark
-----Original Message-----
From: Dr.Byte [mailto:drbyte@...]
Sent: Wednesday, June 19, 2002 2:55 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Crystal formula translation
with examples.
Mark
-----Original Message-----
From: Dr.Byte [mailto:drbyte@...]
Sent: Wednesday, June 19, 2002 2:55 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Crystal formula translation
On Wed, 19 Jun 2002 08:13:50 -0400, you wrote:
Hello Mark,
Now the formula works perfect,
Thanx al lot !!!.
I'am more used to work with crystal, but i also want to make some
reports in RB, because sometimes the speed is much better as with
Crystal.
Are there some doc's where the syntax of the formula's is explained?
René
>Sorry, my error. I think RB expexts only one statement so try this nested
>iif.
>
>iif(ShipDtl.Packages>1,CASE(SHIPDTL.PKGCODE,"V01","1","V02","1","V03",
>"3",""),iif(ShipDtl.Packages=1,CASE(SHIPDTL.PKGCODE,"V01","A","V02","B","V0
3
>",
>"C",""),"")
>)
>
>Mark
>-----Original Message-----
>From: Dr.Byte [mailto:drbyte@...]
>Sent: Tuesday, June 18, 2002 5:42 PM
>To: vantage@yahoogroups.com
>Subject: Re: [Vantage] Re: Crystal formula translation
>
>
>On Tue, 18 Jun 2002 17:12:18 -0400, you wrote:
>
>This is the formula i use
>
>iif(ShipDtl.Packages>1,CASE(SHIPDTL.PKGCODE,"V01","1","V02","1","V03",
>"3",""),"")
>
>iif(ShipDtl.Packages=1,CASE(SHIPDTL.PKGCODE,"V01","A","V02","B","V03",
>"C",""),"")
>
>
>>At 10:43 PM 6/18/2002 +0200, you wrote:
>>>When i just cut and paste the whole formula in RB , and when i verify
>>>the formula i get an "Syntax Error"...????
>>
>>Could be the formula is bad. Can you past it in an email for us?
>>
>>If not, sometimes R.B. is really picky about spaces (or lack of them) in
>>formulas. Try adding them around the operators ( = > < etc) and also
>>around the commas and parens if that doesn't work.
>>
>>-Wayne Cox
>> Twenty Three -- Information Technology Consulting
>> 828-685-2338
>>
>>
>>
>>
>>
>>Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have
>already linked your email address to a yahoo id to enable access. )
>>(1) To access the Files Section of our Yahoo!Group for Report Builder and
>Crystal Reports and other 'goodies', please goto:
>http://groups.yahoo.com/group/vantage/files/.
>>(2) To search through old msg's goto:
>http://groups.yahoo.com/group/vantage/messages
>>(3) To view links to Vendors that provide Vantage services goto:
>http://groups.yahoo.com/group/vantage/links
>>
>>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>>
>
>--=== Groeten René ===--
>
>
>Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
>already linked your email address to a yahoo id to enable access. )
>(1) To access the Files Section of our Yahoo!Group for Report Builder and
>Crystal Reports and other 'goodies', please goto:
>http://groups.yahoo.com/group/vantage/files/.
>(2) To search through old msg's goto:
>http://groups.yahoo.com/group/vantage/messages
>(3) To view links to Vendors that provide Vantage services goto:
>http://groups.yahoo.com/group/vantage/links
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
>(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
>(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
>(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
--=== Groeten René ===--
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/