Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit

Started by sfi_dev at 08-17-2011 6:02 . Topic has 4 replies.

Print Search
Sort Posts:    
   08-17-2011, 6:02
sfi_dev is not online. Last active: 06.02.2012 20:24:28 sfi_dev

Top 25 Posts
Joined on 05-12-2011
Posts 25
Find and replace text programatically
Reply Quote
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 is not online. Last active: 06.02.2012 20:24:28 sfi_dev

Top 25 Posts
Joined on 05-12-2011
Posts 25
Re: Find and replace text programatically
Reply Quote
Any responses to this one guys. Guidance would be much appreciated.

Thanks in advance.
   Report 
   08-23-2011, 8:24
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.914
Re: Find and replace text programatically
Reply Quote
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 is not online. Last active: 06.02.2012 20:24:28 sfi_dev

Top 25 Posts
Joined on 05-12-2011
Posts 25
Re: Find and replace text programatically
Reply Quote
Wont that lose all the HTML formatting ?
   Report 
   08-23-2011, 1:52
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.914
Re: Find and replace text programatically
Reply Quote
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