|
|
pinEdit
Started by sfi_dev at 08-17-2011 6:02 . Topic has 4 replies.
 
 
|
|
Sort Posts:
|
|
|
|
08-17-2011, 6:02
|
sfi_dev
Joined on 05-12-2011
Posts 25
|
Find and replace text programatically
|
|
|
|
|
Hi there,
Within the editor window, i want to be able to replace one string with another without popping up the search window.
I saw another post that suggest
editor.Text = Editor.Text.Replace...
But when I run it in vb using activex pinedit.ocx I get "invalid qualifier"
Is there a way to do this ?
Thanks
|
|
|
|
|
Report
|
|
|
|
08-22-2011, 11:55
|
sfi_dev
Joined on 05-12-2011
Posts 25
|
Re: Find and replace text programatically
|
|
|
|
|
Any responses to this one guys. Guidance would be much appreciated.
Thanks in advance.
|
|
|
|
|
Report
|
|
|
|
08-23-2011, 8:24
|
Pintexx Support
Joined on 08-30-2005
Posts 1.914
|
Re: Find and replace text programatically
|
|
|
|
|
Hello,
you should be able to read from the editor with
readText = editor.Text
Then make your modfications in readText by replacing the strings you want to write the result back to the editor:
editor.Text = readText
Regards,
Hans-Peter
|
|
|
|
|
Report
|
|
|
|
08-23-2011, 8:32
|
sfi_dev
Joined on 05-12-2011
Posts 25
|
Re: Find and replace text programatically
|
|
|
|
|
Wont that lose all the HTML formatting ?
|
|
|
|
|
Report
|
|
|
|
08-23-2011, 1:52
|
Pintexx Support
Joined on 08-30-2005
Posts 1.914
|
Re: Find and replace text programatically
|
|
|
|
|
No, why?
You replace inside the HTML code. If you replace only text and not tags then it should work
|
|
|
|
|
Report
|
|
|
|
|
Pintexx Forum » Developer Produ... » pinEdit » Re: Find and replace text programatically
|
|
|
|