Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using rowscopy in the same datawindow, create new rows

906 views
Skip to first unread message

alex...@hotmail.com

unread,
Jun 10, 2005, 2:55:18 AM6/10/05
to
Hi,

Please! help me how can I use rowscopy in the same
datawindow in order to create new rows, paste old records
with copy all fields except Primary keys (to avoid inserting
the same primary keys). Thank you so much.


Hue Le

Millard F. Brown III

unread,
Jun 10, 2005, 9:52:48 AM6/10/05
to
Just specify the same dw as the target and RowCount() as the target row. Then
use SetItem() to change the primary key before you update.

example:
dw_1.rowscopy( 1, 1, Primary!, dw_1, dw_1.RowCount(), Primary!)

Regards,
Millard[TeamSybase]

On 9 Jun 2005 23:55:18 -0700,
in sybase.public.powerbuilder.datawindow

Regards,
Millard[TeamSybase]

0 new messages