|
of_SetCache
|
|
Full name
|
pfc_n_cst_lvsrv_datasource.of_SetCache
|
Access
|
protected
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
protected function integer of_SetCache(boolean)
|
Name
|
Datatype
|
li_rc
|
integer
|
protected function integer of_SetCache (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
// Protected Function: of_SetCache
// Arguments: ab_switch enable/disable the internal cache
// Returns: integer
// 1 = success
// -1 = error
// Description: Instantiates or destroys the listview caching service. The cache
// is used as the mechanism to retrieve data into the internal listview
// datastore (inv_Attrib.ids_Source)
//////////////////////////////////////////////////////////////////////////////
// Rev. History: Version
// 6.0 Initial version
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 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_rc
// Check arguments
if IsNull (ab_switch) then return -1
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
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|