of_setbase


pfcmain.pbl   >   pfc_w_master   >   of_setbase   

Full name pfc_w_master.of_setbase
Access public
Override of integer
Return value integer
Prototype public function integer of_setbase(boolean)

Name Datatype
ab_switch 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 base window service
//
//	Returns:  integer
//	 1 = success
//	 0 = no action necessary
//	-1 = error
//
//	Description:
//	Instantiates or destroys the base window 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
end if

if ab_Switch then
	if IsNull(inv_base) Or not IsValid (inv_base) then
		inv_base = create n_cst_winsrv
		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

     
Name Owner
w_resp_customer_search.pfc_preopen w_resp_customer_search
w_resp_employee.pfc_preopen w_resp_employee
w_resp_sales_order.pfc_preopen w_resp_sales_order
w_resp_salesperson.pfc_preopen w_resp_salesperson
pfc_w_splash.open pfc_w_splash
pfc_w_filterextended.open pfc_w_filterextended
pfc_w_filtersimple.open pfc_w_filtersimple
pfc_w_sortdragdrop.open pfc_w_sortdragdrop
pfc_w_sortmulti.open pfc_w_sortmulti
pfc_w_sortsingle.open pfc_w_sortsingle
pfc_w_master.close pfc_w_master

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_winsrv.of_setrequestor pfc_n_cst_winsrv

     
Full name
No Data

     
Name Scope
No Data