pfc_invertselection


pfcmain.pbl   >   pfc_u_plb   >   pfc_invertselection   

Full name pfc_u_plb.pfc_invertselection
Access public
Extend of integer
Return value integer
Prototype event integer pfc_invertselection()

Name Datatype
No Data

Name Datatype
li_totalitems integer
ll_item long

event pfc_invertselection;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  			pfc_invertselection
//
//	(Arguments:		None)
//
//	(Returns:  		Integer
//						The number of selected rows.
//						0 - If this is not a valid operation.)
//
//	Description:	Invert the 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.
//
//////////////////////////////////////////////////////////////////////////////

integer 	li_totalitems
long		ll_item

//Only a valid operation when MuliSelect is set to True.
If this.MultiSelect Then
	li_totalitems = this.TotalItems()
	//Loop through all items - Inverting each item
	For ll_item = 1 to li_totalitems
		this.SetState(ll_item, (Not this.State(ll_item)=1) )
	Next
	//Number of selected items
	Return this.TotalSelected()
End If

//Not a valid operation
Return 0
end event

     
Name Owner
No Data

     
Name Owner
listbox.setstate listbox
listbox.state listbox
listbox.totalitems listbox
listbox.totalselected listbox

     
Full name
No Data

     
Name Scope
No Data