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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find and replace a text block in a character field

Status
Not open for further replies.

osolheim

Programmer
Feb 4, 2004
2
NO
How can I find a certain text block and replace it with another within a character field in Progress?
Example:
The field contains:
"lpsp -c$FRM/ir1 -dOsl_1f_8000 -s -onb"
I want to find the block "Osl_1f_8000" and replace it with for instance "t003"....

Any ideas??
 
Code:
DEFINE VARIABLE cText AS CHARACTER NO-UNDO
    INITIAL "lpsp -c$FRM/ir1 -dOsl_1f_8000   -s -onb".

ASSIGN cText = REPLACE(cText,"Osl_1f_8000","t003").
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top