of_setupdatebottomup


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   of_setupdatebottomup   

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

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setupdatebottomup (boolean ab_direction);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetUpdateBottomUp
//
//	Access:    		Public
//
//	Arguments:
//   ab_direction:	True, update linked chain from Bottom-Up
//						  	False (default), update linked chain from Top-Down.
//
//	Returns:   		Integer
//   					1 if it succeeds and -1 if an error occurs.
//
//	Description: 	This function sets an attribute of the datawindow
//					  	to indicate that the chain of linked datawindows should
//					  	be updated from the bottom-up.
//
//	   *Note:	This function should be called on *each* datawindow that
//					could be calling the of_update function directly.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
// 6.0 	Marked obsolete Replaced by of_SetUpdateStyle().
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

If IsNull(ab_direction) Then 
	Return -1
End If

ib_updatebottomup = ab_direction

// Forward to the of_UpdateStyle the desired style.
If ib_updatebottomup Then
	of_SetUpdateStyle(BOTTOMUP)
Else
	of_SetUpdateStyle(TOPDOWN)
End if

Return 1
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
pfc_n_cst_dwsrv_linkage.of_setupdatestyle pfc_n_cst_dwsrv_linkage

     
Full name
No Data

     
Name Scope
No Data