of_setdatasource


pfcmain.pbl   >   pfc_u_lvs   >   of_setdatasource   

Full name pfc_u_lvs.of_setdatasource
Access public
Extend of integer
Return value integer
Prototype public function integer of_setdatasource(boolean)

Name Datatype
No Data

Name Datatype
li_rc integer

public function integer of_setdatasource (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_setdatasource
//
//	Access:  public
//
//	Arguments:
//	ab_switch   enable/disable the listviews data source service
//
//	Returns:  integer
//	 1 = success
//	-1 = error
//
//	Description:
//	Instantiates or destroys the listview data source 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_datasource) Or not IsValid (inv_datasource) then
		inv_datasource = create n_cst_lvsrv_datasource
		inv_datasource.of_SetRequestor (this)
		li_rc = 1
	end if
else
	if IsValid (inv_datasource) then
		destroy inv_datasource
		li_rc = 1
	end if	
end if

return li_rc


end function

     
Name Owner
pfc_u_lvs.destructor pfc_u_lvs

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_lvsrv.of_setrequestor pfc_n_cst_lvsrv

     
Full name
No Data

     
Name Scope
No Data