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

InsertRow – PB Docs 2019 – PowerBuilder Library

InsertRow – PB Docs 2019

InsertRow

method (DataWindows)

Description

Inserts a row in a DataWindow or DataStore. If any columns have
default values, the row is initialized with these values before it is
displayed.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Syntax

PowerBuilder

Argument

Description

dwcontrol

A reference to a DataWindow control, DataStore, or
child DataWindow.

row

A value identifying the row before which you want to
insert a row. To insert a row at the end, specify
0.

Return value

Returns the number of the row that was added if it succeeds and -1
if an error occurs.

If any argument’s value is null, in PowerBuilder and JavaScript the
method returns null. If there is no DataWindow object assigned to the
DataWindow control or DataStore, this method returns -1.

Usage

InsertRow simply inserts the row without changing the display or the
current row. To scroll to the row and make it the current row, call
ScrollToRow. To simply make it the current row, call SetRow.

A newly inserted row (with a status flag of New!) is not included in
the modified count until data is entered in the row (its status flag
becomes NewModified!).

Examples

This statement inserts an initialized row before row 7 in
dw_Employee:

This example inserts an initialized row after the last row in
dw_employee, then scrolls to the row, which makes it current:

See also

DeleteRow

Update


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