pfc_accepttext


pfcmain.pbl   >   pfc_w_master   >   pfc_accepttext   

Full name pfc_w_master.pfc_accepttext
Access public
Extend of integer
Return value integer
Prototype event integer pfc_accepttext(powerobject[],boolean)

Name Datatype
No Data

Name Datatype
No Data

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

     
Name Owner
pfc_w_master.of_updatechecks pfc_w_master
pfc_w_master.of_accepttext pfc_w_master

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.upperbound systemfunctions
pfc_n_cst_luw.of_accepttext pfc_n_cst_luw
pfc_w_master.of_setlogicalunitofwork pfc_w_master

     
Full name
No Data

     
Name Scope
No Data