Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Finding out the IP address from the description Post Reply Post New Topic
Author Message
aneel
Newbie
Newbie


Joined: 22 Jun 2009
Location: India
Online Status: Offline
Posts: 6
Quote aneel Replybullet Topic: Finding out the IP address from the description
    Posted: 28 Jan 2010 at 10:52pm
Hi Team,
 
I'm having one field name called "Description", it does't contain fixed lenght data. With in this I want to take out the IP address and should show  it in one column.
 
I tried substring and split function options, but these are only for fixed length data.. do we have any other option to find out this?? plz help
 
 
Regards,
Aneel
Anee Chandanam
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 01 Feb 2010 at 11:42am
as far as I know, neither substring nor split cares about length.  The issue is being able to find the data that you want and determining where that data ends. Instr() should be able to find the start of the information, maybe the end as well, Mid() can use the info from Instr() to select the piece of information that you are looking for.
 
HTH
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 01 Feb 2010 at 12:23pm

And do not forget using Len() to find the lenght of a string.  Very helpful if you want to split off part of a string using the above functions.

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.000 seconds.