Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

eliminate spaces

Status
Not open for further replies.

leburg

Programmer
Feb 15, 2006
64
US
How can I squeeze the spaces out of a string...any multiple spaces reduced to 1 space...

using 8.5

Thanks in advance.
 
Put your field into this formula:

Local StringVar Z := {field};
While " " in Z
do (Z := Replace (Z , ' ' , ' ') )
; Z

Put this formula in place of your field.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
 
Thank you, Ken. An honor to have you reply to my question...sorry for being lazy. And thanks for sharing all you know...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top