1. Clarence Chamorro
  2. PowerBuilder
  3. Thursday, 25 January 2024 21:03 PM UTC

I am new using RichText control and also I am just trying out. When user doubleclick on a text column of a dw the RichText Editor become visible. So they type whatever in the RichText and if they DoubleClick in the RichText then I want to copy the text only to the dw_1.object.column1[1]. 

My question is how do I paste the text I copy to the clipboard via rte_1.Copy() in the dw_1.object.Column1[1]? an advise or guidance will be greatly appreciate. 

 

Regards,

Clarence.

John Fauss Accepted Answer Pending Moderation
  1. Friday, 26 January 2024 03:14 AM UTC
  2. PowerBuilder
  3. # 1

Hi, Clarence - 

The answer is... it depends. Are you wanting to copy the formatted Rich Text from the RTE (Rich Text Editor) into a Rich Text DataWindow, or are you wanting to copy the text content from the RTE into a normal DataWindow's column?

There are CopyRTF() and PasteRTF (RTF = Rich Text Formatted) functions that can be used with Rich Text content, and there are Copy() and Paste() functions for copying non-Rich Text content.

I suggest you examine the PB Help topics on these functions to learn the details on how each works, then you can decide which one(s) is/are appropriate for what you wish to do.

Best regards, John

Comment
  1. Clarence Chamorro
  2. Friday, 26 January 2024 03:49 AM UTC
Thanks.
  1. Helpful
  1. John Fauss
  2. Friday, 26 January 2024 04:55 AM UTC
Please also read the PB Help topic on the Clipboard() PowerScript function.
  1. Helpful 1
  1. Clarence Chamorro
  2. Thursday, 1 February 2024 00:09 AM UTC
Thank you Dr Fauss. Good advise. Solve my issue.

Got it.



Clarence.
  1. Helpful
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.