PasteRTF – PB Docs 150

PasteRTF method (DataWindows)

Description

Pastes rich text data from a string into a DataWindow control
or DataStore object.

Controls

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataStore object

Syntax

[PowerBuilder]

Argument

Description

rtename

A reference to a DataWindow control or
DataStore object. The DataWindow object in the DataWindow control
or DataStore must be a RichTextEdit DataWindow.

richtextstring

A string whose value is data with rich
text formatting.

band
(optional)

A value specifying the band into which
the rich text data is pasted. Valid values for this enumerated datatype
are listed in Chapter 6, “DataWindow Constants “.

The default is the band that contains the insertion point.

Return Values

Returns -1 if an error occurs. If richtextstring is
null, PasteRTF returns null.

Usage

A DataWindow in the RTE presentation style has only three
bands. There are no summary or trailer bands and there are no group
headers and footers.

note.png PowerBuilder RichText Edit control

You can use the same syntax with any PowerBuilder RichTextEdit
control. See PasteRTF in the PowerScript
Reference
.

Examples

This statement pastes rich text in the string ls_richtext
into the header of the RichTextEdit rte_message:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x