of_setsqlspy


pfcutil.pbl   >   pfc_n_cst_debug   >   of_setsqlspy   

Full name pfc_n_cst_debug.of_setsqlspy
Access public
Extend of integer
Return value integer
Prototype public function integer of_setsqlspy(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setsqlspy (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetSQLSpy
//
//	Access:  		public
//
//	Arguments:
//	ab_switch		True - start (create) the service,
//						False - stop (destroy) the service
//
//	Returns:  		integer
//						Returns 1 if it succeeds, 0 if no action is taken, and
//						-1 if an error occurs.
//						
//	Description:  	Starts or stops the SQLSpy 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_sqlspy) Or Not IsValid (inv_sqlspy) Then
		inv_sqlspy = CREATE n_cst_sqlspy
		Return 1
	End If
Else
	If IsValid (inv_sqlspy) Then
		DESTROY inv_sqlspy
		Return 1
	End If	
End If

Return 0
end function

     
Name Owner
pfc_n_cst_debug.destructor pfc_n_cst_debug

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data