of_SetSharedProperty


pfcmain.pbl   >   pfc_u_dw   >   of_SetSharedProperty   

Full name pfc_u_dw.of_SetSharedProperty
Access public
Extend of integer
Return value integer
Prototype public function integer of_SetSharedProperty(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_SetSharedProperty (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_SetSharedProperty
//	Arguments:		boolean
//   					true  - Start (create) the service
//   					false - Stop (destroy ) the service
//	Returns:  		Integer - 1 if Successful operation, 0 = No action taken and -1 if an error occured
//						 1 - Successful operation.
//						 0 - No action taken.
//						-1 - An error was encountered.
//	Description:	Starts or stops the Shared Property Service.
//						Note:	Do not set the requestor on the shared instance.
//						Do not execute snv_property.of_SetRequestor (this) since the object is shared
//						among many datawindows.
//////////////////////////////////////////////////////////////////////////////
//	Rev. History	Version
//						6.0   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 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 FAILURE

if ab_Switch then
	if IsNull(snv_property) or not IsValid (snv_property) then
		snv_property = Create n_cst_dwsrv_property
		return SUCCESS
	end if
else 
	if IsValid (snv_property) then
		Destroy snv_property
		return SUCCESS
	end if	
end if

return NO_ACTION
end function

     
Name Owner
pfc_n_cst_debug.of_setdwproperty pfc_n_cst_debug

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
pfc_u_dw

     
Name Scope
No Data