|
of_setpreference
|
|
Full name
|
pfc_w_master.of_setpreference
|
Access
|
public
|
Override of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setpreference(boolean)
|
Name
|
Datatype
|
ab_switch
|
boolean
|
Name
|
Datatype
|
li_rc
|
integer
|
public function integer of_setpreference (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
// Event: of_SetPreference
//
// Arguments:
// ab_switch starts/stops the window preference service
//
// Returns: integer
// 1 = Successful operation.
// 0 = No action necessary
// -1 = An error was encountered
//
// Description:
// Starts or stops the window preference 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_preference) Or not IsValid (inv_preference) then
inv_preference = create n_cst_winsrv_preference
inv_preference.of_SetRequestor (this)
li_rc = 1
end if
else
if IsValid (inv_preference) then
destroy inv_preference
li_rc = 1
end if
end if
return li_rc
end function