|
of_setbase
|
|
Full name
|
pfc_u_lvs.of_setbase
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setbase(boolean)
|
Name
|
Datatype
|
li_rc
|
integer
|
public function integer of_setbase (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetBase
//
// Access: public
//
// Arguments:
// ab_switch enable/disable the listviews base service
//
// Returns: integer
// 1 = success
// -1 = error
//
// Description:
// Instantiates or destroys the listview base 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_base) Or not IsValid (inv_base) then
inv_base = create n_cst_lvsrv
inv_base.of_SetRequestor (this)
li_rc = 1
end if
else
if IsValid (inv_base) then
destroy inv_base
li_rc = 1
end if
end if
return li_rc
end function