of_invertselection


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_rowselection   >   of_invertselection   

Full name pfc_n_cst_dwsrv_rowselection.of_invertselection
Access public
Extend of integer
Return value integer
Prototype public function integer of_invertselection()

Name Datatype
No Data

Name Datatype
ll_i long
ll_max long

public function integer of_invertselection ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_InvertSelection
//
//	Access:    Public
//
//	Arguments: None
//
//	Returns:   Integer
//
//	Description:  Reverses the selection (highlight) on all 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.
//
//////////////////////////////////////////////////////////////////////////////
long	ll_max
long	ll_i

// Validate the datawindow reference.
If IsNull(idw_requestor) Or Not IsValid(idw_requestor) Then Return -1

// Get the row count.
ll_max = idw_requestor.RowCount ( ) 

// Prevent flickering and improve performance.
idw_requestor.SetReDraw ( FALSE ) 

// Invert row by row.
FOR ll_i = 1 to ll_max
	idw_requestor.SelectRow ( ll_i, NOT (idw_requestor.IsSelected(ll_i)) ) 
NEXT 

// Prevent flickering and improve performance.
idw_requestor.SetReDraw ( TRUE ) 

Return 1


end function

     
Name Owner
pfc_w_restorerow.cb_invertselection.clicked cb_invertselection

     
Name Owner
dragobject.setredraw dragobject
datawindow.isselected datawindow
datawindow.rowcount datawindow
datawindow.selectrow datawindow
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data