Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Altering Numerics Post Reply Post New Topic
Author Message
Paul375
Newbie
Newbie


Joined: 09 Jul 2015
Location: United States
Online Status: Offline
Posts: 4
Quote Paul375 Replybullet Topic: Altering Numerics
    Posted: 29 Sep 2015 at 4:27am
I am working with Crystal 11 release 2. I am working on a report dealing with addresses. The field is a string and the addresses start with numerics. ie, 1205 Elda St. Since this is a public report I am needing to change that 1205 to 1200 Blk Elda St. I have tried a few formulas:
{field} [(InStr ({field}, " ") + 1) To Length ({field})];
//INSTR({field},"")=3
//INSTR(REPLACE({field},CHR(3),"0")) and
REPLACE({field},CHR(4),"0")

These have not worked. Any suggestions?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 Sep 2015 at 10:02am
maybe a split
select first array value
then an if numeric
round by -2
IP IP Logged
Paul375
Newbie
Newbie


Joined: 09 Jul 2015
Location: United States
Online Status: Offline
Posts: 4
Quote Paul375 Replybullet Posted: 29 Oct 2015 at 3:00am
Worked perfectly. Thank you for your help.
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.