of_setcache


pfcapsrv.pbl   >   pfc_n_cst_tvsrv_levelsource   >   of_setcache   

Full name pfc_n_cst_tvsrv_levelsource.of_setcache
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_setcache(boolean)

Name Datatype
No Data

Name Datatype
li_rc integer

protected function integer of_setcache (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_setCache
//
//	Access:  	protected
//
//	Arguments:
//	ab_switch   enable/disable the internal cache
//
//	Returns:  integer
//	 1 = success
//	-1 = error
//
//	Description:
//	Instantiates or destroys the listview cacheing 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_cache) Or not IsValid (inv_cache) then
		inv_cache = create n_cst_dwcache
		li_rc = 1
	end if
else
	if IsValid (inv_cache) then
		destroy inv_cache
		li_rc = 1
	end if	
end if

return li_rc


end function

     
Name Owner
pfc_n_cst_tvsrv_levelsource.constructor pfc_n_cst_tvsrv_levelsource
pfc_n_cst_tvsrv_levelsource.destructor pfc_n_cst_tvsrv_levelsource

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data