of_setupdatestyle


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   of_setupdatestyle   

Full name pfc_n_cst_dwsrv_linkage.of_setupdatestyle
Access public
Extend of integer
Return value integer
Prototype public function integer of_setupdatestyle(integer)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setupdatestyle (integer ai_style);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetUpdateStyle
//
//	Access:    		Public
//
//	Arguments:
//   ai_style:	The style for Updates.
//					TOPDOWN
//					BOTTOMUP
//					TOPDOWN_BOTTOMUP
//					BOTTOMUP_TOPDOWN
//					CUSTOM
//
//	Returns:   		Integer
//						1 if it succeeds and -1 if an error occurs.
//
//	Description:  Set the Update Style.
//
//		Note: If CUSTOM is used, the of_UpdateCustom() function needs to be coded 
//				to provide the custom functionality.
//	
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.0   Initial version - Replaces obsoleted function of_setUpdateBottomUp(...)
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Validate the argument.
If IsNull(ai_style) Then Return -1
CHOOSE CASE ai_style
	CASE	TOPDOWN, BOTTOMUP, TOPDOWN_BOTTOMUP, BOTTOMUP_TOPDOWN, CUSTOM
		// Good value.
	CASE ELSE
		Return -1
END CHOOSE

// Set the update style.
ii_updatestyle = ai_style
Return 1
end function

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_setupdatebottomup pfc_n_cst_dwsrv_linkage
pfc_u_tabpg_dwproperty_srvlinkage2.pfc_propertyapply pfc_u_tabpg_dwproperty_srvlinkage2

     
Name Owner
systemfunctions.isnull systemfunctions

     
Full name
No Data

     
Name Scope
No Data