of_rowselectsingle


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_rowselection   >   of_rowselectsingle   

Full name pfc_n_cst_dwsrv_rowselection.of_rowselectsingle
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_rowselectsingle(long)

Name Datatype
No Data

Name Datatype
No Data

protected function integer of_rowselectsingle (long al_row);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  	of_RowSelectSingle
//
//	Access:   	Protected
//
//	Arguments: 	Long
// al_row  		The clicked row, passed from pfc_u_dw's Clicked event argument
//
//	Returns:   	Integer
//					1 if it succeeds and -1 if an error occurs.
//
//	Description:  Selects the clicked row and de-selects any previously
//					  selected rows.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Check arguments.
If IsNull(al_row) or al_row <0 Then
	Return -1
End If

// Deselect all rows.
idw_Requestor.SelectRow ( 0, FALSE ) 

// Select the one row.
idw_Requestor.SelectRow ( al_row, TRUE ) 

// Set the one row as the current row.
If idw_Requestor.GetRow() <> al_row Then
	idw_Requestor.SetRow ( al_row ) 
End If

Return 1



end function

     
Name Owner
pfc_n_cst_dwsrv_rowselection.of_rowselectext pfc_n_cst_dwsrv_rowselection
pfc_n_cst_dwsrv_rowselection.of_rowselect pfc_n_cst_dwsrv_rowselection
pfc_n_cst_dwsrv_rowselection.of_keybrowselectext pfc_n_cst_dwsrv_rowselection
pfc_n_cst_dwsrv_rowselection.of_keybrowselect pfc_n_cst_dwsrv_rowselection

     
Name Owner
datawindow.getrow datawindow
datawindow.selectrow datawindow
datawindow.setrow datawindow
systemfunctions.isnull systemfunctions

     
Full name
No Data

     
Name Scope
No Data