of_setkeycols


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   of_setkeycols   

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

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setkeycols (string as_column);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetKeyCols
//
//	Access:    		Public
//
//	Arguments:
//   as_column: 	The columnname of the linkage argument in the master
//
//	Returns:   		Integer
//   					1 if it succeeds and -1 if an error occurs.
//
//	Description: 	
//	This function will establish the key column attributes on the master
//	datawindow.  When data in one of these columns changes, then a refresh 
//	(or some other action) is necessary on at least one of its detail datawindows.
//
//	Note:
//	This function is not typically called by the developer.  
// Used internally by of_Register(...) from an subordinate dw.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

If IsNull(as_column) or Len(Trim(as_column))=0 Then 
	Return -1
End If
 
is_keycols[UpperBound(is_keycols) + 1] = as_column
Return 1
end function

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_register pfc_n_cst_dwsrv_linkage

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.len systemfunctions
systemfunctions.trim systemfunctions
systemfunctions.upperbound systemfunctions

     
Full name
No Data

     
Name Scope
No Data