of_setmultiple


pfcmain.pbl   >   pfc_n_tmg   >   of_setmultiple   

Full name pfc_n_tmg.of_setmultiple
Access public
Extend of integer
Return value integer
Prototype public function integer of_setmultiple(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setmultiple (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Event:  of_SetMultiple
//
//	(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 Multiple Notify Service.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	6.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

//Cannot be turned on if the Single service is on.
If ab_switch And IsValid(inv_single) Then Return -1

IF ab_Switch THEN
	IF IsNull(inv_multiple) Or Not IsValid (inv_multiple) THEN
		inv_multiple = Create n_cst_tmgmultiple
		inv_multiple.of_SetRequestor ( this )
		Return 1
	END IF
ELSE 
	IF IsValid (inv_multiple) THEN
		Destroy inv_multiple
		Return 1
	END IF	
END IF

Return 0
end function

     
Name Owner
pfc_n_tmg.destructor pfc_n_tmg

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_tmgmultiple.of_setrequestor pfc_n_cst_tmgmultiple

     
Full name
No Data

     
Name Scope
No Data