FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Auto Replace Text
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Auto Replace Text
Posted: Tue Aug 17, 2010 11:30 PM

Hi,

I would like to be able to locate a word in a text variable and replace it with something else.

Ex:
cText := "I would like to replace #THIS# word with something else"

The text "#THIS#" is what I would like to replace with other text.

All the words that will need to be replaced will start and end with the # symbol.

Is there any function that will let me do something like this?
Maybe in the format: ReplaceText( cTextString, cOriginalText, cNewText)

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Auto Replace Text
Posted: Tue Aug 17, 2010 11:39 PM
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Re: Auto Replace Text
Posted: Tue Aug 17, 2010 11:50 PM

Thanks Daniel. Exactly what I needed :D

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)

Continue the discussion