of_setbase


pfcmain.pbl   >   pfc_n_ds   >   of_setbase   

Full name pfc_n_ds.of_setbase
Access public
Extend of integer
Return value integer
Prototype public function integer of_setbase(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setbase (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_SetBase
//
//	Access:  public
//
//	Arguments:
//	ab_switch:  whether an instance of the base datastore service is enabled/disabled
//
//	Returns:  integer
//	 1 = success
//	 0 = no action taken
//	-1 = error
//
//	Description:
//	Enables/disables an instance of the base datastore service
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//	5.0.04   Return 0 if no action is taken
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

//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_dssrv
		inv_base.of_SetRequestor ( this )
		Return 1
	END IF
ELSE 
	IF IsValid (inv_base) THEN
		Destroy inv_base
		Return 1
	END IF	
END IF

Return 0
end function

     
Name Owner
pfc_n_cst_tvsrv_levelsource.of_register pfc_n_cst_tvsrv_levelsource
pfc_n_cst_tvsrv_levelsource.of_converttorow pfc_n_cst_tvsrv_levelsource
pfc_n_cst_tvsrv_levelsource.of_retrieve pfc_n_cst_tvsrv_levelsource
pfc_n_cst_lvsrv_datasource.of_ConvertToRow pfc_n_cst_lvsrv_datasource
pfc_n_cst_lvsrv_datasource.of_Register pfc_n_cst_lvsrv_datasource
pfc_n_cst_lvsrv_datasource.of_Retrieve pfc_n_cst_lvsrv_datasource
pfc_n_cst_filesrv.of_sortdirlist pfc_n_cst_filesrv
pfc_u_lv.of_setdatasource pfc_u_lv
pfc_u_tv.of_setdatasource pfc_u_tv
pfc_u_tv.destructor pfc_u_tv
pfc_u_tv.constructor pfc_u_tv
pfc_n_ds.destructor pfc_n_ds

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_dssrv.of_setrequestor pfc_n_cst_dssrv

     
Full name
No Data

     
Name Scope
No Data