Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Trim Character in a String
Oldest Post First
Newest Post First
Author
Message
achandana01
Groupie
Joined: 20 Jul 2011
Online Status: Offline
Posts: 59
Topic: Trim Character in a String
Posted: 04 Apr 2012 at 12:00pm
Hi,
I do have following strings
city newyork
Los Angeles
city San Francisco
I need to trim "city" from the strings which has city in em and leave the rest like they are.Results should look like this
newyork
Los Angeles
San Francisco
Thanks
chand
IP Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Posted: 05 Apr 2012 at 5:19am
local stringvar y := {table.field}
local numbervar x := instr(y, "city");
if x = 1 then
y:= trim(mid(y, 5);
y
HTH
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.