|
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