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!

removing spaces from text field

Status
Not open for further replies.

jobillborf

Programmer
Feb 13, 2001
61
US
Hi, I have a text field in my database formated "32 . 32" I would like to remove the space, period and space and have the result "3232" Can someone help me

Thank you for your help in advance.

 
Is that how the field is formatted for all data ie xx . xx?If so just do a ltrim([fieldname],2) + rtrim[fieldname,2]).
 
Or, if you have CR 8.5 or above, you should be able to use:

replace({table.string}," . ","")

...but in CR 8.0, the replace function doesn't work well when trying to replace a character with "".

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top