Micro Focus QTP (UFT) Forums
Replace LInes of text with a keyword - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Replace LInes of text with a keyword (/Thread-Replace-LInes-of-text-with-a-keyword)



Replace LInes of text with a keyword - bjotorres - 11-11-2008

I need to select and replace lines of text in the middle of a file with one keyword. Does anyone have code for that?


RE: Replace LInes of text with a keyword - roxer - 12-04-2008

hi, bjotorres
Can you specify more clearly your task: you should find text line which contains keyword and replace this line with other text, OR you need to replace particular text line (and you know number of this line) by keyword (so this text line will contain only keyword)?