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

Joined: 20 Nov 2007
Online Status: Offline
Posts: 33
Quote stevbren Replybullet Topic: Formula help wanted
     Posted: 27 Jul 2009 at 4:29am
We have a job description for every job that starts with a title, then asterisks, then a more detailed description.
I need to separate this into two fields. I have the title part, but I can't get only the description part without the leading title and asterisks.
 
Can someone help me?
Thank you,
 
Steve
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 27 Jul 2009 at 6:29am
local stringvar ans := strreverse({table.field});
 
ans:= left(ans, instr(ans,"*")-1);
strreverse(ans)
 
should work, provided that there are not any astericks in the detaile description.
 
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