Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: instr help I think Post Reply Post New Topic
Author Message
geoffboston
Newbie
Newbie
Avatar

Joined: 23 Apr 2008
Location: United States
Online Status: Offline
Posts: 2
Quote geoffboston Replybullet Topic: instr help I think
    Posted: 23 Apr 2008 at 2:28pm

If I want to cut an email address into 3 different fields.

geoffboston @ abc.com

How do I removed everything after the @ sign given the text before the @ sign is variable in length with different records?

I want to end up with just abc.com

thanks in advance
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 24 Apr 2008 at 8:19am
Yes, you use Instr() and Mid(). Something like this:
Mid({table.email}, Instr({table.email},"@")+1)

I have all the string functions fully documented in Chapter 6 of my Encyclopedia book. You can find out more about my books at Amazon.com or reading the Crystal Reports eBooks online.

Edited by BrianBischof - 24 Apr 2008 at 8:19am
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
geoffboston
Newbie
Newbie
Avatar

Joined: 23 Apr 2008
Location: United States
Online Status: Offline
Posts: 2
Quote geoffboston Replybullet Posted: 24 Apr 2008 at 8:40am
Smile works great, thank you
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.