of_insertrow


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_rowmanager   >   of_insertrow   

Full name pfc_n_cst_dwsrv_rowmanager.of_insertrow
Access public
Extend of long
Return value long
Prototype public function long of_insertrow(long)

Name Datatype
No Data

Name Datatype
ll_rc long

public function long of_insertrow (long al_beforerow);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_InsertRow
//
//	Access:  public
//
//	Arguments:
//	al_beforerow   Identifies the row before which you want to insert the new row.
//	0 inserts at the end of all rows.
//
//	Returns:  long
//	The row number of the new row
//	-1 = error
//
//	Description:
//	Inserts a new row into the DataWindow
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 Sybase, Inc. and its subsidiaries.  All rights reserved.
//	Any distribution of the PowerBuilder Foundation Classes (PFC)
//	source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////

long	ll_rc

// Validate DW requestor
if IsNull(idw_requestor) Or not IsValid (idw_requestor) then
	return -1
end if

ll_rc = idw_requestor.InsertRow (al_beforerow)
if ll_rc > 0 then
	// Scroll to the new row
	idw_requestor.SetRow (ll_rc)
	idw_requestor.ScrollToRow (ll_rc)
	idw_requestor.SetFocus()
end if

return ll_rc

end function

     
Name Owner
pfc_n_cst_dwsrv_rowmanager.pfc_insertrow pfc_n_cst_dwsrv_rowmanager
pfc_n_cst_dwsrv_rowmanager.pfc_addrow pfc_n_cst_dwsrv_rowmanager

     
Name Owner
dragobject.setfocus dragobject
datawindow.insertrow datawindow
datawindow.scrolltorow datawindow
datawindow.setrow datawindow
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data