of_reset


pfcmain.pbl   >   pfc_u_lvs   >   of_reset   

Full name pfc_u_lvs.of_reset
Access public
Extend of integer
Return value integer
Prototype public function integer of_reset()

Name Datatype
No Data

Name Datatype
li_index integer
li_level integer
ll_rootitem long

public function integer of_reset ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_Reset
//
//	Access:		public
//
//	Arguments:  None
//
//	Returns:  Integer
//	 1 if it succeeds
//	-1 if an error occurs.
//	
//	Description:
//	Reset the entire listview (items and datastores).
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	6.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_rootitem
integer	li_index, li_level

this.setredraw(false)

// delete all the listview items
this.DeleteItems() 

// reset the data
If isvalid(inv_datasource) Then
	If inv_datasource.of_resetlist() <> 1 Then Return -1
End If

this.setredraw(true)

Return 1
end function

     
Name Owner
No Data

     
Name Owner
dragobject.setredraw dragobject
listview.deleteitems listview
systemfunctions.isvalid systemfunctions
pfc_n_cst_lvsrv_datasource.of_ResetList pfc_n_cst_lvsrv_datasource

     
Full name
No Data

     
Name Scope
No Data