Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Converting specific numbers to a specific string Post Reply Post New Topic
Author Message
bets
Newbie
Newbie
Avatar

Joined: 05 May 2011
Location: United States
Online Status: Offline
Posts: 8
Quote bets Replybullet Topic: Converting specific numbers to a specific string
    Posted: 05 May 2011 at 3:24am
If {@CalculateYears} = [3,4] then "Opal",
If {@CalculateYears} = [5,6,7,8,9] then "Topaz",
If {@CalculateYears} = [10,11,12,13,14] then "Pearl",
If {@CalculateYears} = [15,16,17,18,19] then "Ruby",
If {@CalculateYears} = [20,21,22,23,24] then "Emerald",
If {@CalculateYears} = [25,26,27,28,29] then "Diamond",
If {@CalculateYears} > 30 then "Pewter"
 
I'm so confused. I'm just trying to create a special Anniversary report. If the individual has been here ofr 3 or 4 years, then he gets an "Opal" catalog, and so on. Help please?!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 05 May 2011 at 3:30am
If {@CalculateYears} in [3,4] then "Opal" else
If {@CalculateYears} in [5,6,7,8,9] then "Topaz" else
If {@CalculateYears} in [10,11,12,13,14] then "Pearl" else
If {@CalculateYears} in [15,16,17,18,19] then "Ruby" else
If {@CalculateYears} in [20,21,22,23,24] then "Emerald" else
If {@CalculateYears} in [25,26,27,28,29] then "Diamond" else
If {@CalculateYears} => 30 then "Pewter" else 'Missing'
IP IP Logged
bets
Newbie
Newbie
Avatar

Joined: 05 May 2011
Location: United States
Online Status: Offline
Posts: 8
Quote bets Replybullet Posted: 16 May 2011 at 6:36am
Thank you so much! Works wonderfully. =)
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.032 seconds.