Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Separation anxiety Post Reply Post New Topic
Author Message
Wosp
Groupie
Groupie
Avatar

Joined: 05 Sep 2012
Location: Sweden
Online Status: Offline
Posts: 45
Quote Wosp Replybullet Topic: Separation anxiety
     Posted: 07 May 2014 at 9:39pm
Hi i got a supressformula in section expert looking like this:
 
if ({OBJECTS.OBJECTTYPE}) like "LEVEL" then true
else false
 
how do i separate if i want  it to suppress more words than LEVEL ?
ex.:
if ({OBJECTS.OBJECTTYPE}) like  LEVEL FIRE LOCAL then true
else false
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 May 2014 at 3:49am
FYI
you do not need the if - then for it to evaluate
Also the LIKE operator is usually used with a ? and/or * to look for items that are partial matches verses the IN which is a full match
 
if you want to keep your curretn syntax itr would be
if ({OBJECTS.OBJECTTYPE}) like  ["LEVEL","FIRE","LOCAL"] then true else false
 
These both do the same thing though
({OBJECTS.OBJECTTYPE}) like  ["LEVEL","FIRE","LOCAL"]
or
({OBJECTS.OBJECTTYPE}) IN  ["LEVEL","FIRE","LOCAL"]
 
IP IP Logged
Wosp
Groupie
Groupie
Avatar

Joined: 05 Sep 2012
Location: Sweden
Online Status: Offline
Posts: 45
Quote Wosp Replybullet Posted: 08 May 2014 at 9:22pm
Thank you very much!
Thumbs%20Up
IP IP Logged
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