Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Function search Post Reply Post New Topic
Author Message
eberhard
Newbie
Newbie


Joined: 21 Sep 2011
Online Status: Offline
Posts: 7
Quote eberhard Replybullet Topic: Function search
    Posted: 21 Sep 2011 at 5:37am

I have a text field  that i want to search for 'M" (it can be anywhere within the field.   once  I find M   I need to extract the next 5 characters including the M.    example   'Prototype  M10444 revision'    result =  M10444

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Sep 2011 at 7:32am
mid(table.field,instr(table.field,"M"),5)
IP IP Logged
eberhard
Newbie
Newbie


Joined: 21 Sep 2011
Online Status: Offline
Posts: 7
Quote eberhard Replybullet Posted: 21 Sep 2011 at 8:15am
exactly what i wanted  ...  thanks
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.