|
pfc_accepttext
|
|
Full name
|
pfc_w_master.pfc_accepttext
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_accepttext(powerobject[],boolean)
|
event pfc_accepttext;//////////////////////////////////////////////////////////////////////////////
//
// Event:
// pfc_AcceptText
//
// Arguments:
// apo_control Array of controls to check for accepttext
// ab_focusonerror Should focus be set to object in error
//
// Returns: integer
// 1 = success
// -1 = error
//
// Description:
// Perform an AcceptText on all objects found on the specified array.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 5.0.02 Do not perform AcceptText on Datawidows found on uncreated tab pages.
// 6.0 Redirected to the Logical Unit of Work Service.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_focusonerror) Then Return -1
// 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_AcceptText(apo_control[], ab_focusonerror)
End If
Return -1
end event