|
pfc_saveobjects
|
|
Full name
|
pfc_w_master.pfc_saveobjects
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_saveobjects(powerobject[])
|
Name
|
Datatype
|
li_rc
|
integer
|
lpo_empty
|
powerobject[]
|
event pfc_saveobjects;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_saveobjects
//
// Arguments:
// apo_control[] The array of objects that should be saved.
//
// Returns: integer
// 1 = success
// 0 = No pending changes found
// -1 = AcceptText error
// -2 = UpdatesPending error was encountered
// -3 = Validation error was encountered
// -4 = The pfc_preupdate process failed
// -5 = The pfc_begintran process failed
// -6 = The pfc_update process failed
// -7 = The pfc_endtran process failed
// -8 = The pfc_postsave process failed
//
// Description:
// Performs a save operation for the specified objects.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_rc
powerobject lpo_empty[]
// Initialize array holding the objects that need to be updated.
ipo_tempupdateobjects = apo_control
// Perform the actual update(s).
li_rc = this.Event pfc_save()
// Clear array holding the objects that were just updated.
ipo_tempupdateobjects = lpo_empty
Return li_rc
end event