of_setreport


pfcmain.pbl   >   pfc_n_ds   >   of_setreport   

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

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setreport (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Event:  of_SetReport
//
//	(Arguments: boolean
//   TRUE  - Start (create) the service
//   FALSE - Stop (destroy ) the service
//
//	Returns:  		Integer
//						 1 - Successful operation.
//						 0 - No action taken.
//						-1 - An error was encountered.
//
//	Description:  Starts or stops the Reporting Services.  The Reporting Services
//				     provide the ability to dynamically change the appearance of 
//				     datawindows.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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.
//
//////////////////////////////////////////////////////////////////////////////

//Check arguments
If IsNull(ab_switch) Then
	Return -1
End If

IF ab_Switch THEN
	IF IsNull(inv_Report) Or Not IsValid (inv_Report) THEN
		inv_Report = Create n_cst_dssrv_report
		inv_Report.of_setRequestor(This)
		Return 1
	END IF
ELSE
	IF IsValid (inv_Report) THEN
		Destroy inv_Report
		Return 1
	END IF	
END IF

Return 0
end function

     
Name Owner
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