1. Neil Garcia
  2. PowerBuilder
  3. Tuesday, 14 January 2020 22:31 PM UTC

Hi All,

I was looking for ways to get the plain text from the RTF control. I think I can get it by doing SelectTextAll, Copy and Clipboard functions but just wondering if there's another more efficient way of doing it.

From google I came across a post from Bruce Armstrong that links to teamsybase website which is no longer available.

Wondering if anyone has saved a copy of the highedit.zip from Bruce's and is willing to share.

 

Thanks,

Neil

Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 15 January 2020 00:07 AM UTC
  2. PowerBuilder
  3. # Permalink

Which version of PB are you using?  From PB 10.5 onwards it doesn't use HighEdit.  It uses TextControl.

Comment
There are no comments made yet.
Neil Garcia Accepted Answer Pending Moderation
  1. Wednesday, 15 January 2020 17:15 PM UTC
  2. PowerBuilder
  3. # 1

Thanks Ricardo, I will try your suggestion.

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 16 January 2020 01:13 AM UTC
Sounds good. Just FYI, PB 2019 R3 is going to get the latest version of Text Control RichTextEdit that supports more features and 64-bit.
  1. Helpful
There are no comments made yet.
Neil Garcia Accepted Answer Pending Moderation
  1. Wednesday, 15 January 2020 17:15 PM UTC
  2. PowerBuilder
  3. # 2

Thanks Armeen. We are using PB 12.1. Good to know it's not HighEdit anymore. I will check the TextControl. I will try Ricardo's suggestions too.

 

 

Comment
There are no comments made yet.
Ricardo Colarina Accepted Answer Pending Moderation
  1. Wednesday, 15 January 2020 02:12 AM UTC
  2. PowerBuilder
  3. # 3

Hi Neil,

From PB 2017, in the built-in RTE control, you can use dw_1.Describe("Evaluate('StripRTF(column_name)', row_number)").  You can also adopt this DW function using a datastore for RTE controls like ds_1.Describe("Evaluate('StripRTF(~~'" + string_value + "~~')', 1)").  But I found that the ClipBoard functions are more efficient.

Cheers,

Ricardo

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.