|
of_keychanged
|
|
Full name
|
pfc_n_cst_dwsrv_linkage.of_keychanged
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_keychanged(long,string,string,any)
|
Name
|
Datatype
|
li_i
|
Integer
|
li_numdetails
|
Integer
|
li_rc
|
Integer
|
public function integer of_keychanged (long al_row, string as_column, string as_prevvalue, any aa_newvalue);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_KeyChanged
//
// Access: Public
//
// Arguments:
// al_row The row number.
// as_column The keycolumn which just changed.
// as_prevvalue
// aa_newvalue
//
// Returns: Integer
// 1 = No error found
// -1 = An error was found
//
// Description:
// A key column has just been changed. Cascade this change to the detail dws.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
Integer li_numdetails, li_i, li_rc
// Validate arguments.
if IsNull(al_row) or al_row < 0 then Return FAILURE
if IsNull(as_column) or Len(Trim(as_column)) =0 then Return FAILURE
// Loop through the valid details and request the syncronization.
li_numdetails = UpperBound ( idw_details )
For li_i = 1 to li_numdetails
If IsValid ( idw_details[li_i] ) Then
If IsNull(idw_details[li_i].inv_Linkage) Or &
Not IsValid ( idw_details[li_i].inv_Linkage ) Then Return FAILURE
li_rc = idw_details[li_i].inv_Linkage.of_KeySync &
(al_row, as_column, as_prevvalue, aa_newvalue)
If li_rc < 0 Then Return FAILURE
End If
Next
Return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.len |
systemfunctions
|
systemfunctions.trim |
systemfunctions
|
systemfunctions.upperbound |
systemfunctions
|
pfc_n_cst_dwsrv_linkage.of_keysync |
pfc_n_cst_dwsrv_linkage
|