|
pfc_updateprep
|
|
Full name
|
pfc_u_tab.pfc_updateprep
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_updateprep(powerobject[])
|
event pfc_updateprep;//////////////////////////////////////////////////////////////////////////////
//
// Event:
// pfc_updateprep
//
// Arguments:
// apo_control[] The controls on which to perform functionality.
//
// Returns: integer
// 1 = success
// 0 = no action
// -1 = error
//
// Description:
// Request the Logical Unit of Work service to perform Update Preparation
// functionality on the array.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// Make sure there is something to take action on.
If UpperBound(apo_control) = 0 Then Return NO_ACTION
// Let Logical Unit of Work Service perform the functionality (create if necessary).
If IsNull(inv_luw) Or Not IsValid (inv_luw) Then of_SetLogicalUnitofWork(True)
If IsValid(inv_luw) THen
Return inv_luw.of_UpdatePrep(apo_control)
End If
Return -1
end event