Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Post Reply Post New Topic
Author Message
connorsbc
Newbie
Newbie
Avatar

Joined: 15 Feb 2008
Location: United States
Online Status: Offline
Posts: 3
Quote connorsbc Replybullet Topic: Formula
     Posted: 15 Feb 2008 at 12:40pm
Have a data field with a full domain layout (dhene.us.ese.com). How do I trim the information after the ".us.ese.com"?
IP IP Logged
connorsbc
Newbie
Newbie
Avatar

Joined: 15 Feb 2008
Location: United States
Online Status: Offline
Posts: 3
Quote connorsbc Replybullet Posted: 15 Feb 2008 at 12:46pm
Need to add one more thing, the front part of the data changes in size. so the trim right function won't work.
IP IP Logged
Joel Krywolt
Newbie
Newbie
Avatar

Joined: 08 Nov 2007
Online Status: Offline
Posts: 12
Quote Joel Krywolt Replybullet Posted: 15 Feb 2008 at 1:38pm

try using this in the formula editor:

right({Table.Domain Name},(length({TableDomain Name})-instr({Table.Domain Name},".")))

 
Where Table=table name
and Domain Name=Domain Name
 
I tried this with:
 
dhene.us.ese.com      returned  us.ese.com 
asdhene.us.ese.com  returned   us.ese.com 
 
hope this helps!
JK
IP IP Logged
connorsbc
Newbie
Newbie
Avatar

Joined: 15 Feb 2008
Location: United States
Online Status: Offline
Posts: 3
Quote connorsbc Replybullet Posted: 15 Feb 2008 at 2:31pm
That worked, but I also need only the table name to display.
 
return of:
 
dhene and asdhene
 
thanks
 
IP IP Logged
Joel Krywolt
Newbie
Newbie
Avatar

Joined: 08 Nov 2007
Online Status: Offline
Posts: 12
Quote Joel Krywolt Replybullet Posted: 15 Feb 2008 at 2:56pm
Try This:
left({Table.Domain Name},Instr({Table.Domain Name},"."))
JK
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