of_setlevelsource


pfcmain.pbl   >   pfc_u_tvs   >   of_setlevelsource   

Full name pfc_u_tvs.of_setlevelsource
Access public
Extend of integer
Return value integer
Prototype public function integer of_setlevelsource(boolean)

Name Datatype
No Data

Name Datatype
li_rc integer

public function integer of_setlevelsource (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_setlevelsource
//
//	Access:  public
//
//	Arguments:
//	ab_switch   enable/disable the treeview's data source service
//
//	Returns:  integer
//	 1 = success
//	-1 = error
//
//	Description:
//	Instantiates or destroys the treeview data source service
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 Sysource, Inc. and its subsidiaries.  All rights reserved.
//	Any distribution of the PowerBuilder Foundation Classes (PFC)
//	source code by other than Sysource, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////

integer	li_rc

// Check arguments
if IsNull (ab_switch) then
	return -1
end if

if ab_Switch then
	if IsNull(inv_levelsource) Or not IsValid (inv_levelsource) then
		inv_levelsource = create n_cst_tvsrv_levelsource
		inv_levelsource.of_SetRequestor (this)
		li_rc = 1
	end if
else
	if IsValid (inv_levelsource) then
		destroy inv_levelsource
		li_rc = 1
	end if	
end if

return li_rc


end function

     
Name Owner
pfc_u_tvs.destructor pfc_u_tvs

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_tvsrv.of_setrequestor pfc_n_cst_tvsrv

     
Full name
No Data

     
Name Scope
No Data