Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Replace numeric to astirisk Post Reply Post New Topic
Author Message
abing430
Newbie
Newbie
Avatar

Joined: 16 Jan 2011
Online Status: Offline
Posts: 5
Quote abing430 Replybullet Topic: Replace numeric to astirisk
    Posted: 30 Jan 2013 at 12:35am
hello all,

i have the ff. requirement: let say this is the content of my DB field

"Some text in this text field, Some text in this text field, Some text in this text field, Some text in this text field, Some text in this text field, Some text in this text field, Some text in this text field,
1,234,456.00"

now is it possible to display the numeric characters into asterisk like instead of displaying 1,234,456.00 it will display *,***,***.**

thanks

Fidel
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 31 Jan 2013 at 12:05pm
the ugly way is to use 10 wrapped replace statements.
here is an example of the first 3:
replace(replace (replace(field,'0','*'),'1','*'),'2','*')


Edited by DBlank - 31 Jan 2013 at 12:05pm
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.031 seconds.