Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SetTextStyle – PB Docs 125 – PowerBuilder Library

SetTextStyle – PB Docs 125

SetTextStyle PowerScript function

Description

Specifies the text formatting for selected text in a RichTextEdit
control. You can make the text bold, underlined, italic, and struck
out. You can also make it either a subscript or superscript.

Controls

RichTextEdit controls

Syntax

Argument

Description

rtename

The name of the RichTextEdit control
in which you want to specify formatting for selected text.

bold

A boolean value specifying whether the
selected text is bold.

underline

A boolean value specifying whether the
selected text is underlined.

subscript (obsolete)

Maintained for backward compatibility
only. A boolean value specifying whether the selected text is a
subscript. This value is currently ignored.

superscript (obsolete)

A boolean value specifying whether the
selected text is a superscript. Maintained for backward compatibility
only. If both subscript and superscript are true, subscript takes
precedence and the text is subscripted. This value is currently
ignored.

italic

A boolean value specifying whether the
selected text is italic.

strikeout

A boolean value specifying whether the
selected text is has a line drawn through it.

Return Values

Integer. Returns 1 if it succeeds and
-1 if an error occurs.

Examples

This example makes selected text in the RichTextEdit rte_1 bold
and italic:

This example makes the selected text italic but keeps
other text formatting as it was:

See Also


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