of_setdebug


pfcapsrv.pbl   >   pfc_n_cst_appmanager   >   of_setdebug   

Full name pfc_n_cst_appmanager.of_setdebug
Access public
Extend of integer
Return value integer
Prototype public function integer of_setdebug(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setdebug (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetDebug
//
//	Access:  		public
//
//	Arguments:
//	ab_switch		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 Debug 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.
//
//////////////////////////////////////////////////////////////////////////////

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

IF ab_Switch THEN
	IF IsNull(inv_debug) Or Not IsValid (inv_debug) THEN
		inv_debug = CREATE n_cst_debug
		Return 1
	END IF
ELSE
	IF IsValid (inv_debug) THEN
		DESTROY inv_debug
		Return 1
	END IF	
END IF

Return 0
end function

     
Name Owner
pfc_n_cst_appmanager.destructor pfc_n_cst_appmanager

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data