of_setsheetmanager


pfcmain.pbl   >   pfc_w_frame   >   of_setsheetmanager   

Full name pfc_w_frame.of_setsheetmanager
Access public
Override of integer
Return value integer
Prototype public function integer of_setsheetmanager(boolean)

Name Datatype
ab_switch boolean

Name Datatype
li_rc integer

public function integer of_setsheetmanager (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_SetSheetManager
//
//	Access:  public
//
//	Arguments:		
//	ab_switch   create/destroy the service
//
//	Returns:  integer
//	 1 = Successful operation.
//	 0 = No action taken.
//	-1 = An error was encountered.
//
//	Description:  Starts or stops the Sheet manager service
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_rc

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

if ab_switch then
	if IsNull(inv_sheetmanager) Or not IsValid (inv_sheetmanager) then
		inv_sheetmanager = create n_cst_winsrv_sheetmanager
		inv_sheetmanager.of_SetRequestor (this)
		li_rc = 1
	end if
else
	if IsValid (inv_sheetmanager) then
		destroy inv_sheetmanager
		li_rc = 1
	end if
end if

return li_rc
end function

     
Name Owner
pfc_w_frame.close pfc_w_frame

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_winsrv_sheetmanager.of_setrequestor pfc_n_cst_winsrv_sheetmanager

     
Full name
No Data

     
Name Scope
No Data