erase code on a string

erase code on a string

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7052
Joined: Thu Oct 18, 2012 7:17 pm

Re: erase code on a string

Postby cmsoft » Thu Mar 07, 2019 10:43 am

STRTRAN(cString,"-",SPACE(1)) or STRTRAN(cString,"-","") if it is not part of the text
User avatar
cmsoft
 
Posts: 1289
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: erase code on a string

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7052
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests