Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Start & ENd Points of a string Post Reply Post New Topic
Author Message
shifty
Newbie
Newbie
Avatar

Joined: 12 Jul 2007
Location: United Kingdom
Online Status: Offline
Posts: 17
Quote shifty Replybullet Topic: Start & ENd Points of a string
    Posted: 13 Feb 2008 at 1:10am

I have used instr and mid to read and extract data from a string.  My issue is that I need to stop reading the string when another word starts or a carriage return, line feed is present.

Any help would be much appreciated
 
shifty
 
 
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 13 Feb 2008 at 9:03am
The carriage return and line feed are chrw(10) and chrw(13).  You'll have to include the logic to test for them inside your results and cut off the string at that point if they are there.
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
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.