FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour erase code on a string
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
erase code on a string
Posted: Thu Mar 07, 2019 10:01 AM

I have a string sample
"xxx-xxxx-xxxx-xxxx-xxxxxxx-xxxxx-"
and I wish erase the code "-" or converte it in space(1)
how I must make it ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: erase code on a string
Posted: Thu Mar 07, 2019 10:43 AM

STRTRAN(cString,"-",SPACE(1)) or STRTRAN(cString,"-","") if it is not part of the text

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: erase code on a string
Posted: Thu Mar 07, 2019 10:53 AM

thanks run ok

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion