of_rowselectmulti


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_rowselection   >   of_rowselectmulti   

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

Name Datatype
No Data

Name Datatype
No Data

protected function integer of_rowselectmulti (long al_row);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  	of_RowSelectMulti
//
//	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/De-Selects the clicked row depending on its present
//					  state.  Does not de-select 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

// Select or Deselect the row.
idw_Requestor.SelectRow ( al_row,  NOT (idw_Requestor.IsSelected(al_row)) ) 

// Make the row 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_rowselect pfc_n_cst_dwsrv_rowselection

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

     
Full name
No Data

     
Name Scope
No Data