Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Case within case Post Reply Post New Topic
Author Message
Macavity
Groupie
Groupie


Joined: 24 Sep 2012
Online Status: Offline
Posts: 93
Quote Macavity Replybullet Topic: Case within case
    Posted: 09 Sep 2014 at 4:28am
Anyone worked with case within case ? My data doesn't seem to be correct.

example

select {table.dim}

case "300" : select {table.bpid} case "S0001" : "A0001"
                     default : if {table.ctyy} = "DE" then "Z" else "A0002"

case "600" : select {table.bpid} case "S501" : "B0001"
                     default : if {table.ctyy} = "DE" then "Z" else "B0002"

default : "Z"

no syntax errors, anyone see any logical errors or things that might go wrong ?

thanks
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 17 Sep 2014 at 5:17am
never done it with that syntax. I've used SWITCH, and help has the syntax for SELECT CASE (in the basic syntax) as being a different syntax.

in VB i have done embedded Select Cases without any issue.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.