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

TableInsert – PB Docs 2022 – PowerBuilder Library

TableInsert – PB Docs 2022

TableInsert

PowerScript function

Description

Inserts a table in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

Argument

Description

rows The number of rows to add in the new table.
column The number of columns to add in the new table.
textPos The position to insert the new table, which will be the
character index (starting at 1) of the first character of the
table cell in the RichTextEdit control. If there are new line
characters in the content, each new line character is counted as
one character too. If the RichTextEdit control contains header and
footer, the character indexes of the header, footer and main
content are accumulated separately. By default, textPos is -1,
meaning to insert the new table at the current text input
position.

Return value

Long.

Returns the ID of the table if the table is inserted
successfully.

Returns 0 if an error has occurred or the table could not be
inserted. Note that tables cannot be inserted when some text has been
selected.

Returns -1 if the new table has been inserted at the top or at the
bottom of an existing table. In this case the new table is combined with
the existing table.

Returns null if any argument is null.

Examples

The following example inserts a table:

The following example inserts a table at the specified
position:


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